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::OnSize
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  afx_msg void OnSize( UINT  nType, int  cx, int  cy  );
 
  Parameter   Description
 
  <nType>     Specifies the type of resizing requested. This parameter can
              be one of the following values:
 
              Value            Description
 
              SIZEFULLSCREEN   Window has been maximized.
 
              SIZEICONIC       Window has been minimized.
 
              SIZENORMAL       Window has been resized, but neither
                               SIZEICONIC nor SIZEFULLSCREEN applies.
 
              SIZEZOOMHIDE     Message is sent to all pop-up windows when
                               some other window is maximized.
 
              SIZEZOOMSHOW     Message is sent to all pop-up windows when
                               some other window has been restored to its
                               former size.
 
  <cx>        Specifies the new width of the client area.
 
  <cy>        Specifies the new height of the client area.
 
  Remarks
 
  Called after the size has changed.
 
  If the SetScrollPos or MoveWindow member function is called for a
  child window from OnSize, the <bRedraw> parameter should be nonzero to
  cause the CWnd to be repainted.
 
  This message-handler member function calls the Default member
  function. Override this member function in your derived class to handle
  the WM_SIZE message.
 
  See Also
 
  CWnd::MoveWindow, CWnd::SetScrollPos, CWnd::Default, WM_SIZE
 
 
                                     -♦-