Code:
RECT rcClient;
GetClientRect(hwnd,&rcClient);
As easy as that.