![]() |
Popup Menu |
Post Reply ![]() |
Author | |
thodgson ![]() Groupie ![]() Joined: 11 August 2003 Status: Offline Points: 78 |
![]() ![]() ![]() ![]() ![]() Posted: 11 August 2003 at 1:37pm |
I have a popup menu, that doesn't do anthing fancy at all, which is having two problems: The application is derived from the Outlook GUI example. The popup menu appears in the frame with the ListView. Functionally, when a user right clicks on a list item, the menu should pop-up. 1. The toolbar icons don't show up. In my Mainframe class's OnCreate method, I am calling InstallCoolMenus and passing in the resource ID for the popup menu. 2. The menu doesn't seem to respond to Update UI messages, e.g., certain items in the "main" menu are greyed out, but in the popup, they are not. Maybe I'm missing something very simple, please let me know. If you know of an example I can work with, please let me know.
Thanks!
|
|
![]() |
|
thodgson ![]() Groupie ![]() Joined: 11 August 2003 Status: Offline Points: 78 |
![]() ![]() ![]() ![]() ![]() |
Got it. In my TrackPopupMenu method call, I was passing in this instead of the active view:
Was: pop->TrackPopupMenuEx( TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this, NULL );
Now: pop->TrackPopupMenuEx( TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd()->GetActiveWindow(), NULL ); |
|
![]() |
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 |