summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/clui.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-02 15:00:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-02 15:00:54 +0000
commit6a2895b7cc2eabdd975ace83ce5dc5f8c0d6f88f (patch)
tree4b0447e0fccf3989dd61ca9a586d3f2d198dcebe /plugins/Clist_nicer/src/clui.cpp
parentcd045c23540a1a18886b1886f20aaa30b7f586c1 (diff)
- three remaining clist services converted into functions (Clist_MenuProcessCommand, Clist_IsDocked, Clist_MenuProcessHotkey);
- old unused junk removed from CLIST_INTERFACE with its stubs; - all unused clist services also removed with bunch of another crap like unused params git-svn-id: http://svn.miranda-ng.org/main/trunk@17243 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clui.cpp')
-rw-r--r--plugins/Clist_nicer/src/clui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Clist_nicer/src/clui.cpp b/plugins/Clist_nicer/src/clui.cpp
index f99c10ca7f..d35cb59db5 100644
--- a/plugins/Clist_nicer/src/clui.cpp
+++ b/plugins/Clist_nicer/src/clui.cpp
@@ -959,7 +959,7 @@ LRESULT CALLBACK ContactListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
}
if (cfg::dat.bClipBorder != 0 || cfg::dat.dwFlags & CLUI_FRAME_ROUNDEDFRAME) {
- int docked = CallService(MS_CLIST_DOCKINGISDOCKED, 0, 0);
+ int docked = Clist_IsDocked();
int clip = cfg::dat.bClipBorder;
if (!g_CLUISkinnedBkColor)
@@ -1121,7 +1121,7 @@ skipbg:
GetWindowRect(hwnd, &rc);
// if docked, dont remember pos (except for width)
- if (!CallService(MS_CLIST_DOCKINGISDOCKED, 0, 0)) {
+ if (!Clist_IsDocked()) {
db_set_dw(NULL, "CList", "Height", (DWORD)(rc.bottom - rc.top));
db_set_dw(NULL, "CList", "x", (DWORD)rc.left);
db_set_dw(NULL, "CList", "y", (DWORD)rc.top);
@@ -1313,11 +1313,11 @@ skipbg:
db_set_b(NULL, "CList", "State", SETTING_STATE_MINIMIZED);
break;
}
- pcli->pfnShowHide(0, 0);
+ pcli->pfnShowHide();
return 0;
}
if (wParam == SC_RESTORE) {
- pcli->pfnShowHide(0, 0);
+ pcli->pfnShowHide();
return 0;
}
}
@@ -1474,7 +1474,7 @@ skipbg:
return 0;
}
}
- else if (CallService(MS_CLIST_MENUPROCESSCOMMAND, MAKEWPARAM(LOWORD(wParam), MPCF_MAINMENU), NULL))
+ else if (Clist_MenuProcessCommand(LOWORD(wParam), MPCF_MAINMENU, NULL))
return 0;
buttons_done:
@@ -1488,7 +1488,7 @@ buttons_done:
case ID_TRAY_HIDE:
case IDC_TBMINIMIZE:
case IDC_STBMINIMIZE:
- pcli->pfnShowHide(0, 0);
+ pcli->pfnShowHide();
break;
case POPUP_NEWGROUP:
SendMessage(pcli->hwndContactTree, CLM_SETHIDEEMPTYGROUPS, 0, 0);
@@ -1513,7 +1513,7 @@ buttons_done:
SetButtonStates();
break;
case POPUP_HIDEMIRANDA:
- pcli->pfnShowHide(0, 0);
+ pcli->pfnShowHide();
break;
case POPUP_SHOWMETAICONS:
cfg::dat.dwFlags ^= CLUI_USEMETAICONS;
@@ -1731,7 +1731,7 @@ buttons_done:
PostMessage(hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
return 0;
}
- pcli->pfnShowHide(0, 0);
+ pcli->pfnShowHide();
return 0;
case CLUIINTM_REDRAW: