diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-05-19 12:04:30 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-05-19 12:04:30 +0000 |
commit | 95d83b736560df015c7dda58edff8a2fd3a1bc14 (patch) | |
tree | f018c1b8818c3845762e00c86d5d1688768865f7 /plugins/YAPP/src/icons.cpp | |
parent | 02d3a913e0f9c77f814293b771790e13d0e0f3de (diff) |
YAPP: forgotten icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@4727 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP/src/icons.cpp')
-rw-r--r-- | plugins/YAPP/src/icons.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/YAPP/src/icons.cpp b/plugins/YAPP/src/icons.cpp new file mode 100644 index 0000000000..97a4290406 --- /dev/null +++ b/plugins/YAPP/src/icons.cpp @@ -0,0 +1,30 @@ +#include "common.h"
+
+static IconItem iconList[] =
+{
+ // toolbar
+ { LPGEN("Popups are enabled"), ICO_TB_POPUP_ON, IDI_POPUP },
+ { LPGEN("Popups are disabled"), ICO_TB_POPUP_OFF, IDI_NOPOPUP },
+
+ // common
+ { LPGEN("Popups are enabled"), ICO_POPUP_ON, IDI_POPUP },
+ { LPGEN("Popups are disabled"), ICO_POPUP_OFF, IDI_NOPOPUP },
+ { LPGEN("Popup History"), ICO_HISTORY, IDI_HISTORY },
+};
+
+/**
+ * Returns a icon, identified by a name
+ * @param pszIcon - name of the icon
+ * @param big - bool big icon (default = false)
+ * @return: HICON if the icon is loaded, NULL otherwise
+ **/
+HICON IcoLib_GetIcon(LPCSTR pszIcon, bool big)
+{
+ return (pszIcon) ? Skin_GetIcon(pszIcon, big) : NULL;
+}
+
+void InitIcons()
+{
+ Icon_Register(hInst, SECT_TOLBAR, iconList, 2);
+ Icon_Register(hInst, SECT_POPUP, iconList+2, 3);
+}
|