diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-07 11:57:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-07 11:57:39 +0000 |
commit | 0ac4b544972fb011e7c7c69e60a1d5d180ada0ac (patch) | |
tree | dfeedccf29e74d70e4516d536ef0c4cae8f858a1 /include/m_clist.h | |
parent | 93bd92b6468356ea844cb1a3d7bb257b71c8c6bf (diff) |
MS_CLIST_GROUPEXISTS - new service to detect the clist group's presence
git-svn-id: http://svn.miranda-ng.org/main/trunk@5993 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_clist.h')
-rw-r--r-- | include/m_clist.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/m_clist.h b/include/m_clist.h index 587a3cb35b..df82559883 100644 --- a/include/m_clist.h +++ b/include/m_clist.h @@ -468,6 +468,16 @@ typedef struct { #define ME_CLIST_GROUPCHANGE "CList/GroupChange"
+//checks that a group exists v0.1.1.0+
+//wParam = 0 (unused)
+//lParam = (TCHAR*)groupName
+//returns 0 if a group is not found or group handle on success
+#define MS_CLIST_GROUPEXISTS "CList/GroupExists"
+
+__forceinline HANDLE Clist_GroupExists(LPCTSTR ptszGroupName)
+{ return (HANDLE)CallService(MS_CLIST_GROUPEXISTS, 0, (LPARAM)ptszGroupName);
+}
+
//creates a new group and calls CLUI to display it v0.1.1.0+
//wParam = hParentGroup
//lParam = groupName
@@ -478,6 +488,10 @@ typedef struct { //API to create unique name by itself
#define MS_CLIST_GROUPCREATE "CList/GroupCreate"
+__forceinline HANDLE Clist_CreateGroup(HANDLE hParent, LPCTSTR ptszGroupName)
+{ return (HANDLE)CallService(MS_CLIST_GROUPCREATE, (WPARAM)hParent, (LPARAM)ptszGroupName);
+}
+
//deletes a group and calls CLUI to display the change v0.1.1.0+
//wParam = (WPARAM)(HANDLE)hGroup
//lParam = 0
|