Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Toolkit text length limit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolkit text length limit

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: Toolkit text length limit
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 December 2006 at 3:01am
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
Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Posted: 20 December 2006 at 10:32am
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;

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.