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.
BEGIN_MESSAGE_MAP Macro
                                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BEGIN_MESSAGE_MAP( Derived_window_class, Base_window_class)
 
  Parameter              Description
 
  <Derived_window_class> The name of the window class whose message map
                         this is.
 
  <Base_window_class>    The name of the base class of
                         <Derived_window_class>.
 
  Remarks
 
  Use the BEGIN_MESSAGE_MAP macro to begin the definition of your message
  map.
 
  In the .CPP file that defines the member functions for your window
  class, start the message map with the BEGIN_MESSAGE_MAP macro, then add
  macro entries for each of your message-handler functions (see the
  listing above in this section), and complete the message map with the
  END_MESSAGE_MAP macro.
 
  For example:
 
          BEGIN_MESSAGE_MAP( CMyWindow, CFrameWnd )
              ON_WM_PAINT()
              ON_COMMAND( IDM_ABOUT, OnAbout )
          END_MESSAGE_MAP( )
 
  See Also
 
  DECLARE_MESSAGE_MAP Macro, END_MESSAGE_MAP Macro,
  Message Map Function Categories
 
 
                                     -♦-