![]() |
No statusbar update |
Post Reply ![]() |
Author | |
Spud2000 ![]() Newbie ![]() Joined: 05 April 2004 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() Posted: 26 July 2004 at 4:42am |
Hi, I've developed a MDI-Application. When I'm loading popupmenu from a resource... pPopupMenu->LoadMenu(IDR_XYZ); ...and display it... CXTPCommandBars::TrackPopupMenu(pPopupMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON, aPoint.x, aPoint.y, this); ...then the mainframe received the WM_SETMESSAGESTRING and WM_POPMESSAGESTRING messages and I'm able to update the statusbar. But when I'm using a dynamically built popupmenu, then the mainframe doesn't receive the WM_SETMESSAGESTRING and WM_POPMESSAGESTRING messages. pPopMenu->AppendMenu(MF_STRING, ID_XYZ1, GetMyMenuLabel(i)); Strangely, when I'm using the MFC CMenu::TrackPopupMenu() - methode for displaying the menu, then the messages are fired. thanks for any suggestions. |
|
![]() |
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 |