Share via


Mapping Windows Messages to Your Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Mapping Windows Messages to Your Class.

If you need your dialog box to handle Windows messages, override the appropriate handler functions. To do so, use the Properties window to map the messages to the dialog class. This writes a message-map entry for each message and adds the message-handler member functions to the class. Use the Visual C++ source code editor to write code in the message handlers.

You can also override member functions of CDialog and its base classes, especially CWnd.

What do you want to know more about

See Also

Dialog Boxes
Life Cycle of a Dialog Box