CWnd::GetClientRect
Visual Studio 2012
Copies the client coordinates of the CWnd client area into the structure pointed to by lpRect.
void GetClientRect( LPRECT lpRect ) const;
See the example for CWnd::IsIconic.