Win32 window capture with BitBlt not displaying border

怎甘沉沦 提交于 2019-12-06 04:22:46

Turns out this was due to the WS_EX_LAYERED attribute being set on the window.

See http://www.eggheadcafe.com/software/aspnet/31543575/dwm-composition--get-par.aspx for a discussion of related issues.

Oddly using PrintWindow once and BitBlt afterwards solves the problem...

Use below instead

BitBlt(hMemDC, 0, 0, size.cx, size.cy, hDC, 0, 0, SRCCOPY | CAPTUREBLT);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!