Link to home
Start Free TrialLog in
Avatar of clintMon
clintMon

asked on

Add menu to CPropertySheet

I have a CPropertySheet that has five pages (CPropertyPages).  I want to add a file menu (with "Open", "Save", "Save As", etc) to the property sheet.  I can't add the menu during design time because the "Menu" option in the resource editor is greyed out (for each property page's "Dialog Properties" page).  Besides, I'd want to add the menu to the property sheet, not the individual pages.  Any thoughts?  Thanks very much.
Avatar of clintMon
clintMon

ASKER

I'd wrote: " I can't add the menu during design time because the "Menu" option in the resource editor is greyed out".  I meant that I can't add the menu IN THE RESOURCE EDITOR during design time.
Avatar of jkr
>>I can't add the menu during design time because the "Menu" option in the resource editor is greyed out

That is grayed out because a Property Sheet technically is a dialog, and dialogs don't have menus (caution: don't confuse that with dialog based apps) according to the Windows GUI styleguides. And I might add that this idea also does not "feel" right to me. Why not implementing that as buttons, like it is usually done in these cases?
OK.  I'm good with buttons instead of a menu (button for "Save", button for "Open File").  Is there a way to add the buttons to CPropertySheet?  This way, the buttons would be available on all of the Property Pages that my property sheet contains.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect, it's what I want, and much more actually.  I was thinking about using the apply button for one of my file features (open file or save file), and this article covers that.  Thanks.