
Dialog Based Apps - Menu & Windows :: MFC
Quote:
>I have two questions about a dialog based app.
>1) How do you add an "About" menu item?
Kuphryn,
A MFC dialog application appends the About menu to the dialog's system
menu.
Quote:
> For example, a
>dialog based app features an About class by default. I
>added a "File" menu. However, the "About" menu does not
>show up. I could add an "About" menu item, but how do you
>connect the menu command to the "About" window.
Just handle the WM_COMMAND message for the menu ID and use the same
code that's already displaying the dialog in the OnSysCommand handler.
Quote:
>2) When you create a dialog based app, AppWizard gives the
>options to have minimize, maximize, etc. Is there a way to
>add and/or remove one or more of those features using
>code? I did not add a feature to minimize, however, now I
>want to minimize the window. It is too late to use
>AppWizard.
Open the dialog in the resource editor and give the dialog the styles
you want.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq