开发者

Win32 Capturing child Window messages in parent window

开发者 https://www.devze.com 2023-03-19 15:21 出处:网络
In my Win32 application, a child window is created by a third party SDK.The Window creation process is transparent and I cannot associate a WndProc method with the child Window. I want to be able to c

In my Win32 application, a child window is created by a third party SDK.The Window creation process is transparent and I cannot associate a WndProc method with the child Window. I want to be able to capture child window me开发者_如何学Gossages in parent window. How can I do this? Any help would be highly appreciated.


Have you looked at SetWindowsHookEx? Or if that seems like overkill you could probably just use SetWindowLong with GWL_WNDPROC and define your own custom WinProc then forward to the child window.

There is a pretty good article on MSDN about it.

0

精彩评论

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