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.
CWnd::OnNcCalcSize
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  afx_msg void OnNcCalcSize( LPRECT  lpRect );
 
  Parameter   Description
 
  <lpRect>    Points to a RECT data structure that contains the screen
              coordinates of the CWnd rectangle (including client area,
              borders, caption, scroll bars, and so on).
 
  Remarks
 
  Called when the size of the client area needs to be calculated.
 
  The Default member function calculates the size of the client area based
  on the window characteristics (presence of scroll bars, menu, and so
  on), and places the result in <lpRect>.
 
  This message-handler member function calls the Default member
  function. Override this member function in your derived class to handle
  the WM_NCCALCSIZE message.
 
  See Also
 
  CWnd::Default, WM_NCCALCSIZE
 
 
                                     -♦-