Visual Studio 2010 - Visual C++
CWnd::SetWindowPlacement
Sets the show state and the normal (restored), minimized, and maximized positions for a window.
BOOL SetWindowPlacement( const WINDOWPLACEMENT*lpwndpl );
Points to a WINDOWPLACEMENT structure that specifies the new show state and positions.
Nonzero if the function is successful; otherwise 0.
Header: afxwin.h