summaryrefslogtreecommitdiff
path: root/plugins/CmdLine/src/mimcmd_handlers.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-25 21:53:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-25 21:53:56 +0000
commit06bb38dfa357a731e16980d03ab100b84e5cb989 (patch)
tree686bd8edc9e71087bb943ec3fe6dbb5193d09247 /plugins/CmdLine/src/mimcmd_handlers.cpp
parentcc6abc9eed963a2659c121ddec136f1ab4256535 (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/CmdLine/src/mimcmd_handlers.cpp')
-rw-r--r--plugins/CmdLine/src/mimcmd_handlers.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/CmdLine/src/mimcmd_handlers.cpp b/plugins/CmdLine/src/mimcmd_handlers.cpp
index 7c18db81fd..75a6aee74c 100644
--- a/plugins/CmdLine/src/mimcmd_handlers.cpp
+++ b/plugins/CmdLine/src/mimcmd_handlers.cpp
@@ -550,8 +550,7 @@ void HandleClistCommand(PCommand command, TArgument *argv, int argc, PReply repl
{
case 2:
{
- HWND hClist = (HWND) CallService(MS_CLUI_GETHWND, 0, 0);
- int state = IsWindowVisible(hClist);
+ int state = IsWindowVisible(pcli->hwndContactList);
Set2StateReply(reply, state, 0, LPGEN("Contact list is currently shown."), "", LPGEN("Contact list is currently hidden."), "");
return;
@@ -560,7 +559,7 @@ void HandleClistCommand(PCommand command, TArgument *argv, int argc, PReply repl
case 3:
{
int state = 0;
- HWND hClist = (HWND) CallService(MS_CLUI_GETHWND, 0, 0);
+ HWND hClist = pcli->hwndContactList;
switch (Get2StateValue(argv[2]))
{
@@ -617,7 +616,7 @@ void HandleQuitCommand(PCommand command, TArgument *argv, int argc, PReply reply
CallService("CloseAction", 0, 0);
//try another quit method
- HWND hWndMiranda = (HWND)CallService(MS_CLUI_GETHWND, 0, 0);
+ HWND hWndMiranda = pcli->hwndContactList;
PostMessage(hWndMiranda, WM_COMMAND, ID_ICQ_EXIT, 0);
reply->code = MIMRES_SUCCESS;
@@ -636,7 +635,7 @@ void HandleQuitCommand(PCommand command, TArgument *argv, int argc, PReply reply
CallService("CloseAction", 0, 0);
//try another quit method
- HWND hWndMiranda = (HWND)CallService(MS_CLUI_GETHWND, 0, 0);
+ HWND hWndMiranda = pcli->hwndContactList;
PostMessage(hWndMiranda, WM_COMMAND, ID_ICQ_EXIT, 0);
reply->code = MIMRES_SUCCESS;