The information in this article applies to:
SYMPTOMSThe menu IDs of a menu created with App Studio, or Developer Studio in Visual C++ version 4.0, do not appear in the ClassWizard Object IDs window when a CDialog, CDialog-derived, CFormView, or CFormView-derived class is selected in the ClassWizard Class Name combo box. However, the IDs do appear when other classes, such as a program's CWinApp-derived class, are selected. CAUSEThis is by design. ClassWizard associates only one class with a resource. Follow the steps below to associate the menu IDs with a particular class. RESOLUTIONBelow are the steps that allow the developer to see the menu IDs in the Object IDs list when a CFormview or CDialog class is selected within ClassWizard.
MORE INFORMATION
One example of when this problem occurs is when a menu is attached to a
dialog, through the menu selection box in the dialog properties sheet, and
an attempt is made to create handlers for the menu items in the dialog
class. Upon building the project, the menu will be visible in the dialog
box, but the menu item IDs are not available in ClassWizard. Therefore, no
command handlers can be created for these menu items. As stated above, it
is necessary to invoke ClassWizard with the menu visible in the Resource
Editor to properly associate these menu items with the dialog class.
Additional query words:
Keywords : kbwizard kbVC100 kbVC150 kbVC151 kbVC152 kbVC200 kbVC210 kbVC400 kbGrpDSTools |
Last Reviewed: January 25, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |