TRY
Expand Minimize
4 out of 9 rated this helpful - Rate this topic

BEGIN_MESSAGE_MAP

Begins the definition of your message map.

BEGIN_MESSAGE_MAP(theClass, baseClass )

Parameters

theClass
Specifies the name of the class whose message map this is.
baseClass
Specifies the name of the base class of theClass.

Remarks

In the implementation (.cpp) file that defines the member functions for your class, start the message map with the BEGIN_MESSAGE_MAP macro, then add macro entries for each of your message-handler functions, and complete the message map with the END_MESSAGE_MAP macro.

Example

// Example for BEGIN_MESSAGE_MAP
BEGIN_MESSAGE_MAP( CMyWindow, CFrameWnd )
    ON_WM_PAINT()
    ON_COMMAND( IDM_ABOUT, OnAbout )
END_MESSAGE_MAP( )

See Also

MFC Macros and Globals | DECLARE_MESSAGE_MAP | END_MESSAGE_MAP

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.