[00012]-[2015-08-27]-[00]-[windows Programming---GETWINDOWDC getwindowrect getclientdc (GetDC) GetClientRect]

Source: Internet
Author: User

:: 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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.