summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/clistmod.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-25 14:32:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-25 14:32:41 +0000
commit497153f11a96cd336e8dadeeaa50c29e2c1bc2af (patch)
tree7b9c2097d8407988467a0e2c37c11ad9a63af2a7 /plugins/Clist_nicer/src/clistmod.cpp
parent9554d6d4d701beb6e3f4bbcf83d34baa30e7186b (diff)
- fix for the clist services creation order
- Clist Nicer's options adapted for the extraicons plugin git-svn-id: http://svn.miranda-ng.org/main/trunk@1651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clistmod.cpp')
-rw-r--r--plugins/Clist_nicer/src/clistmod.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/Clist_nicer/src/clistmod.cpp b/plugins/Clist_nicer/src/clistmod.cpp
index 7e7cb40f38..d07f079815 100644
--- a/plugins/Clist_nicer/src/clistmod.cpp
+++ b/plugins/Clist_nicer/src/clistmod.cpp
@@ -103,6 +103,25 @@ int LoadContactListModule(void)
return 0;
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
+static INT_PTR GetCaps(WPARAM wParam, LPARAM)
+{
+ switch (wParam) {
+ case CLUICAPS_FLAGS1:
+ return CLUIF_HIDEEMPTYGROUPS | CLUIF_DISABLEGROUPS | CLUIF_HASONTOPOPTION | CLUIF_HASAUTOHIDEOPTION;
+ case CLUICAPS_FLAGS2:
+ return MAKELONG(MAXEXTRACOLUMNS,1);
+ }
+ return 0;
+}
+
+int PreloadContactListModule(void)
+{
+ CreateServiceFunction(MS_CLUI_GETCAPS, GetCaps);
+ return 0;
+}
+
/*
Begin of Hrk's code for bug
*/