Call this member function to change the size, position, and Z-order of child, pop-up, and top-level windows.
BOOL SetWindowPos ( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
If this is a visible top-level window, and you don't specigy the SWP_NOACTIVATE flag in the nFlags parameter, this function will activate the window. If this is the currently active window, and you specify either the SWP_NOACTIVATE flag or the SWP_HIDEWINDOW flag, the activation is passed on to another visible top-level window.
When you set the SWP_FRAMECHANGED flag in the nFlags parameter, Windows CE redraws the entire non-client area of the window, which may change the size of the client area.
Windows CE 1.0 doesn't support the HWND_TOPMOST and HWND_NOTOPMOST constants in the hwndInsertAfter parameter, or the SWP_DRAWFRAME or SWP_NOCOPYBITS flags in the fuFlags parameter.
CWnd Overview, CWnd Member Functions, Window Class Categories