:: GETWINDOWDC (M_hwnd); Indicates that GETWINDOWDC () is a global function with large scope
GETWINDOWDC () Gets a device environment that covers the entire window (including non-client areas) such as title bar, menu, scroll bar, and border
GetWindowRect () Rect represents the position of the application window in the screen rigth left top bottom
GetDC () Gets the environment device for the customer area in the application
GetClientRect () Rect represents the rect of the application client area. Left right top bottom which left=0 top=0 (Heng established)
[
This function gets the coordinates of the client area of the window. Customer area coordinates specify the upper-left and lower-right corners of the customer area. Since the client area coordinates are relative to the upper-left corner of the client area of the window, the upper-left corner coordinates are (0,0), note that the client area of the window is the window in addition to the title bar, the menu bar.
]
[00012]-[2015-08-27]-[00]-[windows Programming---GETWINDOWDC getwindowrect getclientdc (GetDC) GetClientRect]