开发者

how to copy bits from minimized window's HDC?

开发者 https://www.devze.com 2023-02-25 15:52 出处:网络
i would like to copy entire client window size of some window to my HDC, but when the window is minimized the source of all color bit开发者_如何学运维s is always empty RGB(0,0,0);

i would like to copy entire client window size of some window to my HDC, but when the window is minimized the source of all color bit开发者_如何学运维s is always empty RGB(0,0,0); How to do this without activating the window?


You can use this function:

BOOL PrintWindow(
    HWND hwnd,
    HDC hdcBlt,
    UINT nFlags);

http://msdn.microsoft.com/en-us/library/dd162869%28v=vs.85%29.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号