summaryrefslogtreecommitdiff
path: root/worldtime/IcoLib.h
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:57:13 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:57:13 +0000
commit610f48f080c6ae8c298a032cd92bb2ca9948aded (patch)
treefc8f9cdd046fa5219776dc2a9fc74cb6ed700e6a /worldtime/IcoLib.h
parent75c65a6f461f71e2c94aac46d3e08e4475e4a450 (diff)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@23 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'worldtime/IcoLib.h')
-rw-r--r--worldtime/IcoLib.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/worldtime/IcoLib.h b/worldtime/IcoLib.h
new file mode 100644
index 0000000..1817df6
--- /dev/null
+++ b/worldtime/IcoLib.h
@@ -0,0 +1,37 @@
+typedef struct {
+ int cbSize;
+ char *pszSection; //section name used to group icons
+ char *pszDescription; //description for options dialog
+ char *pszName; //name to refer to icon when playing and in db
+ //this name is miranda-wide. so use prefixes of your plugin
+ //e.g: "isee_connect", "clist_delete", etc
+ char *pszDefaultFile; //default icon file to use
+ int iDefaultIndex;
+} SKINICONDESC;
+
+typedef struct {
+ int cbSize;
+ char *pszSection;
+ char *pszDescription;
+ char *pszName;
+ char *pszDefaultFile;
+ int iDefaultIndex;
+ HICON hDefaultIcon;
+} SKINICONDESC2;
+
+//
+// Add a icon into options UI
+//
+// wParam = (WPARAM)0
+// lParam = (LPARAM)(SKINICONDESC*)sid;
+//
+#define MS_SKIN2_ADDICON "Skin2/Icons/AddIcon"
+//
+// Retrieve HICON with name specified in lParam
+// Returned HICON SHOULDN'T be destroyed, it managed by IcoLib
+//
+#define MS_SKIN2_GETICON "Skin2/Icons/GetIcon"
+//
+// Icons change notification
+//
+#define ME_SKIN2_ICONSCHANGED "Skin2/IconsChanged"