![]() |
|
QA: How can I create a property sheet with menubar and minimize button?
By Daniel Strigl, July 17, 2003.
QuestionI am using a property sheet (CPropertySheet) in my dialog based MFC application. How can I create a property sheet with accessible menubar and minimize button?
AnswerThe answer is not very difficult. Just create your own class derived from CPropertySheet. Inside the OnInitDialog message handler remove (hide) the OK button, so that the minimze button will be visible and create your menubar. When you have created your menubar you can load your toolbar from the application resources. After that you can add some message handlers for your menubar buttons. Don't forget that the normal MFC implementation of CPropertySheet doesn't work with the transcriber. So, for more information about this problem and how to fix it just take a look at the following article: QA: Why does not CPropertySheet work with transcriber? Sample applicationYou can download a sample application that illustrates a property sheet with minimize button and menubar. Related resources:
DiscussDiscuss this article. Here you can write your comments and read comments of other developers. |
|||||||||||||||||||||