开发者

Monitor creation of a window (HWND)

I would like to Monitor the creation of windows (HWND) in C.

I'd like to know if there's some kind of event that the WINAPI provides to handle the creation of a windo开发者_如何学JAVAw.


If you are concerned only with top-level windows, you can use SetWindowHookEx to register a ShellProc and watch for HSHELL_WINDOWCREATED. If you need notification of the creation of any window, you can use a CallWndProc and watch for WM_CREATE messages.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜