A community member has associated this post with a similar question:
In MFC for a custom control: how do I define notification messages so Class Wizard recognizes them?

Only moderators can edit this content.

How to see the messages associated with a custom control in Class Wizard for an MFC application?

Juan Dent 236 Reputation points
2023-01-28T14:35:17.5066667+00:00

I have a custom control that defines several notification messages but these are not displayed in the Class Wizard in Visual Studio 2022. See the empty listbox "Messages" in this screen capture of Class Wizard:Class wizard with no messages

How does the Class Wizard know which messages are available for a certain control in a dialog or CFormView??

I want to handle messages..

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Juan Dent 236 Reputation points
    2023-01-28T20:08:39.1466667+00:00

    I agree - but my problem is for a custom control: how do I define notification messages so Class Wizard recognizes them?

    0 comments No comments