In MFC for a custom control: how do I define notification messages so Class Wizard recognizes them?

Juan Dent 236 Reputation points
2023-01-28T20:49:41.57+00:00

Class wizard with no messages

For an MFC custom control, how does one define notification messages sent to the parent's window so that these messages appear in Class Wizard so that we can respond or handle them?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,517 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,484 questions
{count} votes

Accepted answer
  1. RLWA32 39,451 Reputation points
    2023-01-29T09:59:59.4266667+00:00

    As far as I know you there is no supported way to customize the MFC class wizard to recognize and handle custom control notification messages.

    You can make a suggestion to add this as a feature in future releases of Visual Studio.

    0 comments No comments

0 additional answers

Sort by: Most helpful