CWnd::GetWindowRect void GetWindowRect( LPRECT lpRect ) const; 这个函数BOOL GetWindowRect( HWND hWnd, LPRECT lpRect ); 这是我从msdn上看到的