BUG: ClassWizard Does Not Display Messages for VBX Control

ID: Q102668

1.00 1.50 WINDOWS kbtool kbbuglist

The information in this article applies to:

SYMPTOMS

Even though the object ID of a VBX control is highlighted in Class Wizard, the Messages list box does not show any messages. The VBX control may appear to be installed in App Studio and it may even appear on the control palette when this occurs.

You can demonstrate this with IDC_CIRCLE in the CCircleDialog class in the VBCIRCLE example.

CAUSE

There are two causes of this behavior, as follows:

With regard to the VBCircle example, the CCircleDialog class encapsulates a dialog box that contains a CIRC3.VBX control. The CONTROL statement in the RC file for CIRC3.VBX does not specify the required information with the correct case. Therefore, you cannot see messages for IDC_CIRCLE even if you correctly install CIRC3.VBX.

RESOLUTION

If Class Wizard does not display messages for a particular VBX control, perform the following four steps:

1. Choose Install Controls from the App Studio File menu.

2. If the VBX is not installed, select it on the search path and

   choose Install.

3. If the VBX is already installed, select it and choose Remove. Then
   select it on the search path and choose Install.

4. Choose Close to save the control installation changes.

To monitor messages for the VBCircle control, edit the VBCIRCLE.RC file with a text editor. Change the CONTROL statement to read as follows:

CONTROL "CIRC3.VBX;CIRC3;",...

Then load the IDD_CIRCLE_DLG dialog box into AppStudio and select File.Save. This will re-set the ClassWizard information and you will then be able to see the notification messages. Note that CIRC3.VBX needs to have been properly installed in ApStudio as listed above.

STATUS

Microsoft has confirmed this to be a problem in App Studio versions 1.0 and 1.5 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional reference words: 1.00 1.50 notification message handlers threed KBCategory: kbtool kbbuglist KBSubcategory: WizardIss Keywords : kb16bitonly

Last Reviewed: August 7, 1998