Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BEGIN_MESSAGE_MAP

Begins the definition of your message map.

BEGIN_MESSAGE_MAP(theClass, baseClass )

theClass

Specifies the name of the class whose message map this is.

baseClass

Specifies the name of the base class of theClass.

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.

For more information about message maps, see Message Maps (MFC)

BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
   ON_WM_CREATE()
END_MESSAGE_MAP()

Header: afxwin.h

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft