SDK学习笔记-GetClientRect与GetWindowRect区别

    xiaoxiao2021-12-14  17

    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区别类似
    转载请注明原文地址: https://ju.6miu.com/read-971639.html

    最新回复(0)