DECLARE_MESSAGE_MAP( )
Remarks
Each CCmdTarget-derived class in your program must provide a message map to handle messages. Use the DECLARE_MESSAGE_MAP macro at the end of your class declaration. Then, in the .CPP file that defines the member functions for the class, use the BEGIN_MESSAGE_MAP macro, macro entries for each of your message-handler functions, and the END_MESSAGE_MAP macro.
Note If you declare any member after DECLARE_MESSAGE_MAP, you must specify a new access type (public, private, or protected) for them.
For more information on message maps and the DECLARE_MESSAGE_MAP macro, see Message Handling and Mapping Topics in Visual C++ Programmer’s Guide.
Example
// example for DECLARE_MESSAGE_MAP
class CMyWnd : public CFrameWnd
{
// Member declarations
DECLARE_MESSAGE_MAP( )
};
See Also BEGIN_MESSAGE_MAP, END_MESSAGE_MAP