weird behaviour of HCBT_ACTIVATE event with WH_GETMESSAGE
-
Hi All, I was trying to detect a File Open/save Dialog box event of any generic windows application using windows hook. I got a very good suggestion from this forum of installing a WH_CBT hook and check the classname of every window created , if it matches the FileOpen Dialog's classname do my stuff. This actually works very nicely but now I have a slightly different problem. I need to use WH_GETMESSAGE hook for mouse/keyboard events detection as well. So I am trying to get away with installing just a WH_GETMESSAGE for HCBT_ACTIVATE event. I actually do get this event just like I get one if I had installed a WH_CBT hook. However I do not get a pointer to the HWND like a get from the wParam parameter if I had installed a WH_CBT. I checked both the ((Message)lParam)->wParam as well as wParam but I do not get the valid HWND pointer. Need help. Thanks in advance. Regards, Zahid Regards, Zahid