◄CWnd► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── Windows 3.1 only afx_msg void OnWindowPosChanged( 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 has changed as a result of a call to ◄SetWindowPos► or another window-management function. This function calls ◄CWnd::Default►, which sends the ◄WM_SIZE► and ◄WM_MOVE► messages to the window. These messages are not sent if an application handles the OnWindowPosChanged call without calling ◄CWnd::Default►. It is more efficient to perform any move or size change processing during the call to OnWindowPosChanged without calling ◄CWnd::Default►. See Also ◄WM_WINDOWPOSCHANGED►, ◄CWnd::Default► -♦-