Toolkit text length limit |
Post Reply |
Author | |
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
Posted: 19 December 2006 at 7:35pm |
<this is really two questions>
1. Is it possible to use XTP tooltips in a view? I only saw examples for toolbars...
2. Is it possible to extend the tooltip text limit beyond 80 characters? I've seen other tooltip libraries do it, but I'm not sure how to do it. I really need more than 80, and I need some more styles...
Thanks!
- David
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
1. yes. Add CXTPToolTipContext as member,
override OnWndMsg
BOOL CMyView::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{ m_ToolTipContext.FilterToolTipMessage(this, message, wParam, lParam); return CWnd::OnWndMsg(message, wParam, lParam, pResult);
} and override
INT_PTR CMyView::OnToolHitTest(CPoint point, TOOLINFO* pTI) const
2. Standard Tooltip doesn't have such limit....
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
|
The reason I said there is a limit is because I use a strcpy to put the tooltip text in the szText field of the TOOLTIPTEXT structure (I pasted it below). There is a pointer member as well, but I've never used it. I wrote my TOOLTIP stuff many years ago, so maybe it's wrong now. Do you not use the szText member for tooltips?
typedef struct tagNMTTDISPINFOA {NMHDR hdr; LPSTR lpszText;
char szText[80];
HINSTANCE hinst; UINT uFlags; #if (_WIN32_IE >= 0x0300)LPARAM lParam; #endif } NMTTDISPINFOA, *LPNMTTDISPINFOA; |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |