开发者

HINSTANCE to HWND

I use ShellExecute to create a new app instance from my current app. I want to get the HWND o开发者_StackOverflow中文版f that app. Is it possible to get HWND from HINSTANCE or I need to use EnumWindows?


you're right, you need to enum your windows

this question will help you further


An application does not have a single HWND. Each window within the app has its own handle, an HWND.

You will need to use EnumWindows() or one of its friends.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜