RE: Hooking the Messenger Main Window
Hi Dempsey just pm'ed me about this issue...
First of all i tryed the CBT hook as well and had the same problem with raceprouk with HCBT_CREATED... because the plugin was loaded after the conctact list was created, so it was useless...
Then i used the HCBT_ACTIVATE hook whick worked ok, but still there is a catch here as you subclass the window before Plus! does and there i had a problem with transparency (cause i am removing the menu)... so there is no good as well
From my reaserch after trying to resolve the transparency issue i had to subclass the window after Plus does, so i had to make sure that at least the plus menu is loaded in the contactlist window...
I have also tryed other hook types such as WH_WNDPROC etc but still that was no good, so i decided to work with api hooking
So the latest place that i have come upto right now that doesnot give me a problem with the transparency is hooking the InsertMenuItem() API called by msgplush.dll not msnmsgr.exe
But then again if you are not removing the menu bar then at HCBT_ACTIVATE it should work fine.
I order to test for the contactlist hwnd compare it with the handle provided by the messenger API
hope it helps, if you need any more clarifications let me know
Window Manager is discontinued, for WLM try the new,
Enhancer for contact list docking, auto-hide, hide taskbar button, remove button flashing and remember keyboard layout in conversation windows
|