?
Solved

Add menu to CPropertySheet

Posted on 2006-10-25
5
Medium Priority
?
633 Views
Last Modified: 2008-02-01
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.
0
Comment
Question by:clintMon
  • 3
  • 2
5 Comments
 

Author Comment

by:clintMon
ID: 17803257
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.
0
 
LVL 86

Expert Comment

by:jkr
ID: 17805498
>>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?
0
 

Author Comment

by:clintMon
ID: 17806243
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.
0
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 17806278
Actually, you can almost add anything you want, see e.g. http://www.codeproject.com/property/hacking_the_cpropertyshee.asp ("Hacking the CPropertySheet")
0
 

Author Comment

by:clintMon
ID: 17806350
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.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question