Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
OnWindowPosChanging
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  afx_msg void OnWindowPosChanging( WINDOWPOS FAR* lpwndpos );
 
  Parameter   Description
 
  <lpwndpos>  Points to a WINDOWPOS data structure that contains
              information about the window's new size and position.
 
  Remarks
 
  Called when the size, position, or z-order is about to change as a
  result of a call to SetWindowPos or another window-management
  function.
 
  An application can prevent changes to the window by setting or clearing
  the appropriate bits in the flags member of the WINDOWPOS structure.
 
  This function calls CWnd::Default. For a window with the
  WS_OVERLAPPED or WS_THICKFRAME style, the CWnd::Default function
  handles a WM_WINDOWPOSCHANGING message by sending a
  WM_GETMINMAXINFO message to the window. This is done to validate the
  new size and position of the window and to enforce the
  CS_BYTEALIGNCLIENT and CS_BYTEALIGN client styles. An application can
  override this functionality by not calling the CWnd::Default
  function.
 
  See Also
 
  CWnd::OnWindowPosChanged, CWnd::Default, WM_WINDOWPOSCHANGING
 
 
                                     -♦-