summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-10 21:07:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-10 21:07:20 +0000
commit6b1fbf4d40fa3b643aca4e9e82a132cc54f36b76 (patch)
treec9757bf9da76e125d8a8da1ca3d4e8e996ae792f /include
parent1df925a85fe8e7a03698a8a5a7a2e3ee03e2c3a1 (diff)
- SRMM status icons module moved to the core;
- this code removed from Scriver & tabSRMM git-svn-id: http://svn.miranda-ng.org/main/trunk@4416 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_message.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/include/m_message.h b/include/m_message.h
index 8dbb18d79e..c12b0150f4 100644
--- a/include/m_message.h
+++ b/include/m_message.h
@@ -131,8 +131,6 @@ typedef struct {
#define MBF_DISABLED 0x01
#define MBF_HIDDEN 0x02
-/* State of icon with such flag will not be saved, and you must set it manually */
-#define MBF_OWNERSTATE 0x04
typedef struct {
int cbSize;
@@ -153,23 +151,36 @@ typedef struct {
int flags; // bitwize OR of MBCF_* flags above
} StatusIconClickData;
-#define MS_MSG_ADDICON "MessageAPI/AddIcon"
+// wParam = 0 (unused)
// lParam = (StatusIconData *)&StatusIconData
+#define MS_MSG_ADDICON "MessageAPI/AddIcon"
-#define MS_MSG_REMOVEICON "MessageAPI/RemoveIcon"
+// wParam = 0 (unused)
// lParam = (StatusIconData *)&StatusIconData
// only szModule and szId are used
+#define MS_MSG_REMOVEICON "MessageAPI/RemoveIcon"
-#define MS_MSG_MODIFYICON "MessageAPI/ModifyIcon"
// wParam = (HANDLE)hContact
// lParam = (StatusIconData *)&StatusIconData
// if hContact is null, icon is modified for all contacts
// otherwise, only the flags field is valid
// if either hIcon, hIconDisabled or szTooltip is null, they will not be modified
+#define MS_MSG_MODIFYICON "MessageAPI/ModifyIcon"
+
+// wParam = (HANDLE)hContact
+// lParam = (int)zero-based index of a visible icon
+// returns (StatusIconData*)icon description filled for the required contact
+// don't free this memory.
+#define MS_MSG_GETNTHICON "MessageAPI/GetNthIcon"
-#define ME_MSG_ICONPRESSED "MessageAPI/IconPressed"
// wParam = (HANDLE)hContact;
// lParam = (StatusIconClickData *)&StatusIconClickData;
// catch to show a popup menu, etc.
+#define ME_MSG_ICONPRESSED "MessageAPI/IconPressed"
+
+// wParam = (HANDLE)hContact;
+// lParam = (StatusIconkData*)pIcon
+// catch to be notified about the icon list's change.
+#define ME_MSG_ICONSCHANGED "MessageAPI/IconsChanged"
#endif // M_MESSAGE_H__