Table of Contents Previous topic Next topic
Using the Visual C++ Custom AppWizard->Tutorial - Creating an Extension with the AppWizard->Finalising Support for your Dialog Box->Closing and Reopening your Dialog Box->Creating a Menu Item
We need to add a menu item to the View menu of the Virtual Workshop. Class Wizard will help us with this activity providing there is a menu resource. Therefore we will create a menu resource and then add our menu item to it.
From Microsoft Developer Studio, select Resource from the Insert menu. Select Menu as the resource type and click on New. Double click on the menu item to cause the Properties to appear. In this properties box, click on Pop-up to remove the tick next to it. Enter View Message Box into the Caption field and enter Show my dialog box in the Prompt field. Note that this menu item will automatically be given the ID ID_VIEWMESSAGEBOX.