RECT rc1, rc2;
GetClientRect(hWnd,&rc1);
GetWindowRect(hWnd,&rc2);
参考文档:
http://www.cnblogs.com/yongtaiyu/archive/2011/05/18/2049554.html
GetDC()
//GetDC:The GetDC function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen.
GetWindowDC()
//GetWindowDC: The GetWindowDC function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars
//两者的区别与上文Rect的两个API区别类似