Dynamically changing Toolbar's Tooltips
-
Hi guys, I have implemented the code that dinamically change my toolbar's tooltips in CMainFrame. I found the code in WinFrm.cpp. The problem is that I cannot access CMainFrame thru the Wizard anymore. Meaning that I cannot add anymore handlers. Any advice is appreciated. The code is : CMainFrame.Cpp ON_NOTIFY_EX_RANGE(TTN_NEEDTEXT, ...., ..., ...) ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, ...., ..., ...) ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, ...., ..., ...) CMainFrame.h afxmsg BOOL OnToolTipText (..., ..., ..., ...) Thanks. Louis ;)
-
Hi guys, I have implemented the code that dinamically change my toolbar's tooltips in CMainFrame. I found the code in WinFrm.cpp. The problem is that I cannot access CMainFrame thru the Wizard anymore. Meaning that I cannot add anymore handlers. Any advice is appreciated. The code is : CMainFrame.Cpp ON_NOTIFY_EX_RANGE(TTN_NEEDTEXT, ...., ..., ...) ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, ...., ..., ...) ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, ...., ..., ...) CMainFrame.h afxmsg BOOL OnToolTipText (..., ..., ..., ...) Thanks. Louis ;)
Try to delete the .clw file - ClassWizard will rebuild it from sources. Tomasz Sowinski -- http://www.shooltz.com
- It's for protection
- Protection from what? Zee Germans? -
Try to delete the .clw file - ClassWizard will rebuild it from sources. Tomasz Sowinski -- http://www.shooltz.com
- It's for protection
- Protection from what? Zee Germans?Thanks. Sorry for my late reply. Easter and family holidays here in S.A. But I found my mistake. Firstly, ClassWizard does not handle ON_NOTIFY_EX_RANGE. If one wants to use it, one must edit the message map oneself. Also, I moved ON_NOTIFY_EX_RANGE outside the //{{AFX_MSG_MAP. All is OK. Cheers. Louis :) ;)