summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clui.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-01 12:48:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-01 12:48:54 +0000
commit11ab7716e9d48c7505fbcf4fe1deba33b494cdc1 (patch)
tree795bb05caa502ed8e1f4fc7064563e112b077197 /plugins/Clist_modern/src/modern_clui.cpp
parentecfe7288fee11443d9a0f48ca38daa2aabf955c5 (diff)
- MS_CLIST_SETHIDEOFFLINE replaced with pcli->pfnSetHideOffline();
- MS_CLIST_TOGGLEHIDEOFFLINE added to cover the only case with service call; git-svn-id: http://svn.miranda-ng.org/main/trunk@17237 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clui.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clui.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp
index a545ba2928..5859cbd7eb 100644
--- a/plugins/Clist_modern/src/modern_clui.cpp
+++ b/plugins/Clist_modern/src/modern_clui.cpp
@@ -72,8 +72,8 @@ RECT g_rcEdgeSizingRect = { 0 };
/* Module global variables */
static BYTE bAlphaEnd;
-static BYTE bOldHideOffline;
-static BYTE bOldUseGroups;
+static int bOldHideOffline;
+static int bOldUseGroups;
static WORD wBehindEdgeShowDelay,
wBehindEdgeHideDelay,
@@ -423,14 +423,8 @@ HRESULT CLUI::CreateCLC()
nLastRequiredHeight = 0;
if (g_CluiData.current_viewmode[0] == '\0') {
- if (bOldHideOffline != (BYTE)-1)
- CallService(MS_CLIST_SETHIDEOFFLINE, (WPARAM)bOldHideOffline, 0);
- else
- CallService(MS_CLIST_SETHIDEOFFLINE, 0, 0);
- if (bOldUseGroups != (BYTE)-1)
- CallService(MS_CLIST_SETUSEGROUPS, (WPARAM)bOldUseGroups, 0);
- else
- CallService(MS_CLIST_SETUSEGROUPS, 0, 0);
+ pcli->pfnSetHideOffline((bOldHideOffline == -1) ? false : bOldHideOffline);
+ CallService(MS_CLIST_SETUSEGROUPS, (bOldUseGroups == -1) ? false : bOldUseGroups, 0);
}
nLastRequiredHeight = 0;
mutex_bDisableAutoUpdate = 0;