|
-
Sep 20th, 2005, 08:20 PM
#30
Re: Global Hook
Through sheer determination I revisited the above APIs' - SUCCESS!
In short, and NO Sub-Classing, I used:
SetForeGroundWindow(myApps hWnd)
GetNextWindow(myApps hWnd, GW_HWNDNEXT)
SetForeGroundWindow(retval of GetNextWindow)
Viola....
Clicking the SysTray Icon takes the focus, SetForegroundWindow ensures myApp is ready for GetNext,
then capture the Next hWnd,
Now set the focus back to the losing apps Window......
I will post the entire app in the .Net Forum once done.
I want to keep this un-resolved, as I would like feedback on a Global (Sub-Classed) method
using the WM_ACTIVEAPP as M$ states it should work.
At this stage many, many thanks to Joacim for his persistance 
Regards,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|