Click to See Complete Forum and Search --> : Property Sheet and Menus


May 13th, 1999, 01:38 PM
I have written a program who's main window is a property sheet (CPropertySheet).

Since the window of this property sheet is built automatically outside of the resource editor, how would I add a menu to the application?

Thanks

May 13th, 1999, 04:03 PM
Hi!

The following steps should help U out :

1. Add a menu in the resource editor. Say its id is IDR_MYMENU.
2. Add the following code in the OnInitDialog() function of your CPropertySheet derived class.

// START OF CODE

CMenu mnu;
mnu.LoadMenu(IDR_MYMENU);
SetMenu(&mnu);
DrawMenuBar();
mnu.Detach();

// END OF CODE


This will display the menu as u desire

HTH