Click to See Complete Forum and Search --> : How can I place a Menu Bar in a dialog-based App?


Clemens
April 26th, 1999, 10:45 AM
I have created a dialog-based application which works fine so far. What needs to be added is a menu bar.
Alternatively, could anyone tell me how to make a Dialog the main window of an SDI app?

mihai
April 26th, 1999, 10:59 AM
SetMenu.
Sincerely, Mihai

April 26th, 1999, 11:34 AM
What you need to do is to create a menu in the resource-editor. After that you have to edit your dialog-resources. Activate the property-dialog for your dialog (right mouse button on the title of your dialog). There is a combobox named menu on the first page of the property-dialog. Select your newly created menu. Select the page named "Format" in the property-dialog and change the Style of your dialog to popup. Thats all.
Another way is to let AppWizard create a simple SDI-Application for you. In the last step of the wizzard you have to change the BaseClass of the View to CFormView. Check out what the AppWizard has done for you.

Michael Hagen