diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-25 21:53:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-25 21:53:56 +0000 |
commit | 06bb38dfa357a731e16980d03ab100b84e5cb989 (patch) | |
tree | 686bd8edc9e71087bb943ec3fe6dbb5193d09247 /plugins/Utils.pas/mircontacts.pas | |
parent | cc6abc9eed963a2659c121ddec136f1ab4256535 (diff) |
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
Diffstat (limited to 'plugins/Utils.pas/mircontacts.pas')
-rw-r--r-- | plugins/Utils.pas/mircontacts.pas | 6 |
1 files changed, 2 insertions, 4 deletions
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;
|