toolbar
-
hello people I would like to ask for help for the next problem: (please take a look a this image) http://xwega.com/images/menu.jpg[^] the problem is this: the menu bar has the same code base as the Toolbar, in fact the menubar is a toolbar with the TBSTYLE_LIST style. the toolbar works great but the menubar as some problems sending the TBN_HOTITEMCHANGE notification. the menu bar is loadded like this:
m_Menu.LoadMenu(nResource); SetButtons(NULL,m_Menu.GetMenuItemCount()); for(UINT i=0 ; i top menu item dont have an ID so place the variable "i" as the ID of the buttons, and this is the problem this way the notification is not sent and i do not know when the mouse leave the menubar however , if the ID is set as -1 it works great but then i have now way of knowing in what button the mouse stands. any ideias? thanks