From 06bb38dfa357a731e16980d03ab100b84e5cb989 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 25 Jun 2015 21:53:56 +0000 Subject: MS_CLUI_GETHWND & MS_CLUI_GETHWNDTREE replaced with pcli->hwndContactList & pcli->hwndContactTree respectively git-svn-id: http://svn.miranda-ng.org/main/trunk@14386 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Utils.pas/mircontacts.pas | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Utils.pas/mircontacts.pas') diff --git a/plugins/Utils.pas/mircontacts.pas b/plugins/Utils.pas/mircontacts.pas index 15bb6d61a7..5eca8bb927 100644 --- a/plugins/Utils.pas/mircontacts.pas +++ b/plugins/Utils.pas/mircontacts.pas @@ -401,16 +401,14 @@ function SetCListSelContact(hContact:TMCONTACT):TMCONTACT; var wnd:HWND; begin - wnd:=CallService(MS_CLUI_GETHWNDTREE,0,0); + wnd:=cli^.hwndContactTree; result:=hContact; -// hContact:=SendMessage(wnd,CLM_FINDCONTACT ,hContact,0); SendMessage(wnd,CLM_SELECTITEM ,hContact,0); -// SendMessage(wnd,CLM_ENSUREVISIBLE,hContact,0); end; function GetCListSelContact:TMCONTACT; begin - result:=SendMessageW(CallService(MS_CLUI_GETHWNDTREE,0,0),CLM_GETSELECTION,0,0); + result:=SendMessageW(cli^.hwndContactTree,CLM_GETSELECTION,0,0); end; function WndToContact(wnd:HWND):TMCONTACT; -- cgit v1.2.3