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.
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►
 
 
                                     -♦-