Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Nonclient-Area Message Handlers
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  The following message handlers require an entry in a message map.
 
  OnNcActivate        Called when the nonclient area needs to be changed
                        to indicate an active or inactive state.
 
  OnNcCalcSize        Called when the size of the client area needs to
                        be calculated.
 
  OnNcCreate          Called prior to OnCreate when the nonclient area
                        is being created.
 
  OnNcDestroy         Called when the nonclient area is being
                        destroyed.
 
  OnNcHitTest         Called by Windows every time the mouse is moved if
                        CWnd contains the cursor, or has captured mouse
                        input with SetCapture.
 
  OnNcLButtonDblClk   Called when the user double-clicks the left mouse
                        button while the cursor is within a nonclient area
                        of CWnd.
 
  OnNcLButtonDown     Called when the user presses the left mouse button
                        while the cursor is within a nonclient area of
                        CWnd.
 
  OnNcLButtonUp       Called when the user releases the middle mouse
                        button while the cursor is within a nonclient area
                        of CWnd.
 
  OnNcMButtonDblClk   Called when the user double-clicks the middle
                        mouse button while the cursor is within a
                        nonclient area of CWnd.
 
  OnNcMButtonDown     Called when the user presses the middle mouse
                        button while the cursor is within a nonclient area
                        of CWnd.
 
  OnNcMButtonUp       Called when the user releases the middle mouse
                        button while the cursor is within a nonclient area
                        of CWnd.
 
  OnNcMouseMove       Called when the cursor is moved within a nonclient
                        area of CWnd.
 
  OnNcPaint           Called when the nonclient area needs painting.
 
  OnNcRButtonDblClk   Called when the user double-clicks the right mouse
                        button while the cursor is within a nonclient area
                        of CWnd.
 
  OnNcRButtonDown     Called when the user presses the right mouse
                        button while the cursor is within a nonclient area
                        of CWnd.
 
  OnNcRButtonUp       Called when the user releases the right mouse
                        button while the cursor is within a nonclient area
                        of CWnd.
 
 
                                     -♦-