开发者

is it possible to draw on HWND created by another process?

开发者 https://www.devze.com 2023-02-22 02:31 出处:网络
I am creating window inside my program, then sending HWND of this window to another application. Will drawing on window\'s HDC be valid f开发者_Python百科or another process?Windows are owned by other

I am creating window inside my program, then sending HWND of this window to another application. Will drawing on window's HDC be valid f开发者_Python百科or another process?


Windows are owned by other windows, not by processes. You can draw to any HWND on your desktop (at least if the window has the same integrity -- I'm not sure what happens if they don't).

Web browsers that host plug-ins or tabs in a separate process generally make use of this functionality.


Unfortunately you can do this.

0

精彩评论

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