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
Printable View
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
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