Pop up menu in Dialog based App 
Author Message
 Pop up menu in Dialog based App

Hi, I created a dialog based aspplication and then created a menu for it.
However, I don't see any of the object ID of my menu items in class
wizzard. If I right click on the menu and open the wizzard, it asks me to
either create a new class or select an existing one. If I need to pick up
an existing class, shall I pick up the app class or the dialog class?  I
am not sure what I can do to create message handlers for my pop up menu
item. Please help!  Thanks.

Yang



Thu, 12 Apr 2001 02:00:00 GMT  
 Pop up menu in Dialog based App

Quote:
>Hi, I created a dialog based aspplication and then created a menu for it.
>However, I don't see any of the object ID of my menu items in class
>wizzard.

Open the menu resource, then, keeping the menu resource open, start
ClassWizard. You should then see the menu items available for creating
handlers.

Note: you won't get UPDATE COMMAND UI handlers working for menus in a
dialog. Dialogs don't have the message dispatching code for those
messages, but you can always create your own update handlers using a
WM_INITMENUPOPUP handler.

Bob Moore [MVP]
http://www.mooremvp.freeserve.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Due to an unreasonable amount of queries, I no
longer answer unsolicited email questions. Sorry,
no exceptions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Thu, 12 Apr 2001 02:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. creating pop-up menus with dialog based apps gets assert error

2. Dialog box pop-ups - SDI vs. MDI apps

3. Help pop-ups in MFC App

4. How to hide a messagebox before it pops up, in a dialog based app

5. Dialog based app menu

6. Dialog Based Apps - Menu & Windows :: MFC

7. trying to add menu to dialog based app

8. Newbie : Adding Menu Bar and Tool Bar to Dialog Based App

9. Menu enabling in Dialog-based app

10. Using a Menu in a Dialog-based app

11. menu in Dialog based app

12. Checking menu items in dialog based app.

 

 
Powered by phpBB® Forum Software