Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DECLARE_MESSAGE_MAP Macro
                                              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
 
 
                                     -♦-