开发者

Monitor creation of a window (HWND)

开发者 https://www.devze.com 2023-03-26 23:16 出处:网络
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 c

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

精彩评论

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