Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.65 KB

mapping-windows-messages-to-your-class.md

File metadata and controls

25 lines (17 loc) · 1.65 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Mapping Windows Messages to Your Class
Mapping Windows Messages to Your Class
09/06/2019
MFC dialog boxes [MFC], Windows messages
message maps [MFC], in dialog class
Windows messages [MFC], mapping in dialog classes
messages to dialog class [MFC]
mappings [MFC], messages to dialog class [MFC]
message maps [MFC], mapping Windows messages to classes
messages to dialog class [MFC], mapping
Class Wizard [MFC]
a4c6fd1f-1d33-47c9-baa0-001755746d6d

Mapping Windows Messages to Your Class

If you need your dialog box to handle Windows messages, override the appropriate handler functions. To do so, choose the Class View tab in Solution Explorer, right click on the class that represents the dialog box, and choose Class Wizard. Use the wizard 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 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
Working with Dialog Boxes in MFC