Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Tooltips in dynamic toolbars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tooltips in dynamic toolbars

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


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Topic: Tooltips in dynamic toolbars
    Posted: 30 May 2004 at 11:17pm

Hi,

I have created a dynamic toolbar (not loaded from resources), using SetButtons & SetIcons methods (of CXTPToolbar and ImageManager). My question is how do I add tooltips for my commands (assuming I have the text for each command)

Before using the Xtreme package, I did it like this:

BOOL CMainFrame::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)

{

LPNMHDR nmhdr;

nmhdr = (LPNMHDR)lParam;

int aCommandId = nmhdr->idFrom;

switch (nmhdr->code)

{

case TTN_NEEDTEXT:

... // here I set the relevant tooltip

}

But in Xtreme it seems that I do not get the OnNotify event of the CMainFrame.

Can someone please explain ?

 

 

 

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: 01 June 2004 at 3:54am
pToolBar->GetControl(i)->SetTooltip(..)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.219 seconds.