Mapping Messages

 

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 Messages.

Each framework class that can receive messages or commands has its own "message map." The framework uses message maps to connect messages and commands to their handler functions. Any class derived from class CCmdTarget can have a message map. Other articles explain message maps in detail and describe how to use them.

In spite of the name "message map," message maps handle both messages and commands — all three categories of messages listed in Message Categories.

Messages and Commands in the Framework

Show: