CToolTips object from CXTToolBar in SDI |
Post Reply |
Author | |
JoeSchmoe
Newbie Joined: 17 June 2003 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 17 June 2003 at 4:57pm |
Hi, I cannot seem to get a CToolTips object from a CXTToolBar that has been created normally in a CFrameWnd derived object. The tooltips are working and are visible on the bar. It's created with: if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP However, later if I call: CToolTipCtrl* tips = this->m_wndToolBar.GetToolTips(); from inside the CFrameWnd derived object, tips is returned as NULL. What I need to do ultimately is change the tool tip text at will. Any help is appreciated. Joe |
|
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
|
Hi Joe, The GetToolTips method will only work if you specify a tooltip control for the toolbar. If you do so, you don't want to use the CBRS_TOOLTIPS flag because the toolbar will display 2 tooltips, its default one and the one you specify. Here is an example: In your .h file: CToolTipCtrl m_wndToolTip; In your .cpp file: m_wndToolTip.Create(this); Cheers, |
|
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 |