Warning: file_get_contents() [function.file-get-contents]: SSL: 远程主机强迫关闭了一个现有的连接。 in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884

Warning: file_get_contents(https://whois.pconline.com.cn/jsLabel.jsp?ip=127.0.0.1) [function.file-get-contents]: failed to open stream: HTTP request failed! in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884
得到一个HDC所对应的HWND、以及得到HDC(BITMAP)画布的大小 - huidong

huidong

首页 | 会员登录 | 关于争取 2022 寒假做出汇东网 Ver3.0.0 !
搜索文章



通过HDC得到HWND:

HWND hwnd = WindowFromDC(hdc);

再通过HWND得到该窗口客户区的大小,以得到HDC画布的大小,请使用GetClientRect()函数

或者使用GetWndSize()函数,这个函数更方便,请见:http://www.huidong.xyz/index.php?mode=2&id=114 



返回首页


Copyright (C) 2018-2024 huidong