RE: Interop.Call SendMessageW not working since Plus 5/WLM 2011
Check for the updated code in the post. My bad I was in a rush at work.
And just as I suspected. There is still a container around the chat windows:
With tabbed chats enabled (opened 2 chats)
Function called: OnEvent_ChatWndCreated
i :: 1
pPlusWnd.Handle :: 722674
hWnd :: 722626
lpszClassName :: MsgrViewHost View Host
i :: 2
pPlusWnd.Handle :: 722674
hWnd :: 722620
lpszClassName :: TabbedHostWndClass
i :: 3
pPlusWnd.Handle :: 722674
hWnd :: 722620
lpszClassName :: TabbedHostWndClass
Function called: OnEvent_ChatWndCreated
i :: 1
pPlusWnd.Handle :: 788166
hWnd :: 722626
lpszClassName :: MsgrViewHost View Host
i :: 2
pPlusWnd.Handle :: 788166
hWnd :: 722620
lpszClassName :: TabbedHostWndClass
i :: 3
pPlusWnd.Handle :: 788166
hWnd :: 722620
lpszClassName :: TabbedHostWndClass
Tabbed chats disabled (opened 2):
Function called: OnEvent_ChatWndCreated
i :: 1
pPlusWnd.Handle :: 591454
hWnd :: 787436
lpszClassName :: MsgrViewHost View Host
i :: 2
pPlusWnd.Handle :: 591454
hWnd :: 722550
lpszClassName :: TabbedHostWndClass
i :: 3
pPlusWnd.Handle :: 591454
hWnd :: 722550
lpszClassName :: TabbedHostWndClass
Function called: OnEvent_ChatWndCreated
i :: 1
pPlusWnd.Handle :: 1049672
hWnd :: 853746
lpszClassName :: MsgrViewHost View Host
i :: 2
pPlusWnd.Handle :: 1049672
hWnd :: 721894
lpszClassName :: TabbedHostWndClass
i :: 3
pPlusWnd.Handle :: 1049672
hWnd :: 721894
lpszClassName :: TabbedHostWndClass
So instead of passing Window.Handle try calling GetAncestor with either GA_PARENT or GA_ROOTOWNER
This post was edited on 03-24-2011 at 08:45 PM by matty.
|