Posted on 1997-10-12
I have written a program that uses a SetWindowsHookEx(WH_CALLWNDPROC) to set a hook that watches for WM_INITDIALOG messages and subclasses a dialog of another application.
Now, to minimize system impact, I'd like to use a SetWindowsHookEx(WH_CBT) hook and watch for HCBT_CREATEWND.
The problem is that this specific dialog has no title so I identify it by it's children (controls). However, when HCBT_CREATEWND is processed, the children are not yet created so I cannot identify the correct dialog.