Win32 Capturing child window messages in parent window

In my Win32 application, the child window is created by a third-party SDK. The process of creating a window is transparent, and I cannot associate the WndProc method with a child window. I want to be able to capture child window messages in the parent window. How can i do this? Any help would be greatly appreciated.

+6
source share
1 answer

Have you looked at SetWindowsHookEx ? Or, if that seems redundant, you could just use SetWindowLong using GWL_WNDPROC and define your own custom WinProc and then go to the child window.

This article has a pretty good article on MSDN .

+4
source

Source: https://habr.com/ru/post/892617/


All Articles