PRB: Installing VCCE Causes the ATL Windows Message Handler List to be Empty (243173)



The information in this article applies to:

  • Microsoft Windows CE Toolkit for Visual C++ 6.0

This article was previously published under Q243173

SYMPTOMS

After installing the Microsoft Windows CE Toolkit for Visual C++ 6.0, if you right-click on an ATL class in the Class View pane, the "Add Windows Message Handler" wizard always displays empty. The wizard is supposed to have a list of windows messages and events you can select to add a handler for. On a computer without Microsoft Windows CE Toolkit for Visual C++ 6.0, the "Add Windows Message Handler" wizard had numerous messages/events to choose from.

CAUSE

Microsoft is researching this problem and will post more information in this article when the information becomes available.

RESOLUTION

At this time, there is no resolution to this problem other than uninstalling the toolkit, and doing a clean uninstall and reinstall of Microsoft Visual C++ 6.0 or Microsoft Visual Studio 6.0. To workaround this problem, message maps can be added manually without using any wizards. For example:
class CMyClass : ...
{
public:
   ...

   BEGIN_MSG_MAP(CMyClass)
      COMMAND_HANDLER(IDC_MYCTL, EN_CHANGE, OnChange)
      MESSAGE_HANDLER(WM_PAINT, OnPaint)
      ...
   END_MSG_MAP()

   // When a CMyClass object receives a WM_COMMAND
   // message identified by IDC_MYCTL and EN_CHANGE,
   // the message is directed to CMyClass::OnChange
   // for the actual processing.
   LRESULT OnChange( ... )
   { ... }

   // When a CMyClass object receives a WM_PAINT
   // message, the message is directed to
   // CMyClass::OnPaint for the actual processing.
   LRESULT OnPaint( ... )
   { ... }
};
				

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a New ATL/COM AppWizard project.
  2. From Menu item, choose Insert, New ATL Object... and choose the Miscellaneous Category and then add a Dialog object.
  3. In the Class View right-click the Dialog Class and choose Add Windows Message Handler.
If Windows CE Toolkit for Visual C++ 6.0 is installed on the computer, you will notice that the "New Windows messages/event" list is empty.

Modification Type:MajorLast Reviewed:5/13/2002
Keywords:kbprb kbwizard KB243173