◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── DECLARE_MESSAGE_MAP( ) Remarks Each CWnd-derived window class in your program must provide a message map. To provide a message map for a CWnd-derived window class, use the DECLARE_MESSAGE_MAP macro at the end of your window class declaration. Then, in the .CPP file that defines the member functions for the window class, use the BEGIN_MESSAGE_MAP macro, macro entries for each of your message-handler functions (see the listing above in this section), and the END_MESSAGE_MAP macro. For example: class CMyWindow : public CFrameWnd { // Member declarations . . . DECLARE_MESSAGE_MAP( ) }; See Also ◄BEGIN_MESSAGE_MAP Macro►, ◄END_MESSAGE_MAP Macro►, ◄Message Map Function Categories► -♦-