Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - No statusbar update
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No statusbar update

 Post Reply Post Reply
Author
Message
Spud2000 View Drop Down
Newbie
Newbie


Joined: 05 April 2004
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Spud2000 Quote  Post ReplyReply Direct Link To This Post Topic: No statusbar update
    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));
pPopMenu->AppendMenu(MF_STRING, ID_XYZ2, GetMyMenuLabel(2));
CXTPCommandBars::TrackPopupMenu(pPopupMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON, aPoint.x, aPoint.y, this);

Strangely, when I'm using the MFC CMenu::TrackPopupMenu() - methode for displaying the menu, then the messages are fired.

thanks for any suggestions.

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.137 seconds.