WindowsFromDc return null

别等时光非礼了梦想. 提交于 2019-12-05 18:13:47

Device context handles are not valid when passed cross-process. So what you are attempting to do is not possible.

As for your other questions:

Is it possible to have an HDC that is not associated with an HWND?

Yes that is perfectly possible. Plenty of device contexts are not associated with windows.

How I can get the HWND of the window which call DrawTextEx?

Windows do not call functions, code calls functions. So, the question does not really mean anything.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!