summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/global.h
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-12-25 00:30:57 +0000
committerRené Schümann <white06tiger@gmail.com>2014-12-25 00:30:57 +0000
commita58980cb6fcfb7fb81696a72546c1fc4c82ed4f0 (patch)
tree1de49cb03d5c9c3bb10f458e9affd29d310ff547 /plugins/SendScreenshotPlus/src/global.h
parentc0846ad8541a49f1467d32d3208df9671779f5b8 (diff)
SendSS:
- removed mir_icolib and replaced with direct calls (using defines to simplify usage, improved performance) * improved icon define names * renamed ssClose.ico => ssCancel.ico to better reflect its use * slight improvement to ssEditOn.ico !!! this change dramatically changed SendSS's internal icon layout, iconpacks for SendSS must to be adjusted git-svn-id: http://svn.miranda-ng.org/main/trunk@11610 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/global.h')
-rw-r--r--plugins/SendScreenshotPlus/src/global.h35
1 files changed, 34 insertions, 1 deletions
diff --git a/plugins/SendScreenshotPlus/src/global.h b/plugins/SendScreenshotPlus/src/global.h
index 780184080d..1eff333a91 100644
--- a/plugins/SendScreenshotPlus/src/global.h
+++ b/plugins/SendScreenshotPlus/src/global.h
@@ -78,7 +78,6 @@ using namespace std;
#include <m_dropbox.h>
#include "mir_string.h"
-#include "mir_icolib.h"
#include "ctrl_button.h"
#include "dlg_msgbox.h"
#include "resource.h"
@@ -125,6 +124,40 @@ extern HINSTANCE g_hSendSS;
extern MGLOBAL g_myGlobals;
extern HANDLE g_hNetlibUser;
+
+enum{
+ ICO_MAIN=0,
+ ICO_MAINXS,
+ ICO_TARGET,
+ ICO_MONITOR,
+ ICO_END_,
+ ICO_BTN_HELP=0,
+ ICO_BTN_FOLDER,
+ ICO_BTN_DESK,
+ ICO_BTN_DESKON,
+ ICO_BTN_DEL,
+ ICO_BTN_DELON,
+ ICO_BTN_ARROWL,
+ ICO_BTN_ARROWR,
+ ICO_BTN_UPDATE,
+ ICO_BTN_OK,
+ ICO_BTN_CANCEL,
+// ICO_BTN_APPLY,
+ ICO_BTN_EDIT,
+ ICO_BTN_EDITON,
+ ICO_BTN_COPY,
+ ICO_BTN_BBC,
+ ICO_BTN_BBCLNK,
+ ICO_BTN_DOWNARROW,
+ ICO_BTN_END_,
+};
+#define GetIconHandle(ico) ICONS[ico].hIcolib
+#define GetIcon(ico) Skin_GetIconByHandle(GetIconHandle(ico))
+extern IconItem ICONS[ICO_END_];
+#define GetIconBtnHandle(ico) ICONS_BTN[ico].hIcolib
+#define GetIconBtn(ico) Skin_GetIconByHandle(GetIconBtnHandle(ico))
+extern IconItem ICONS_BTN[ICO_BTN_END_];
+
#define PtrIsValid(p) (((p)!=0)&&(((HANDLE)(p))!=INVALID_HANDLE_VALUE))
#define MIR_FREE(p) {if (PtrIsValid(p)){mir_free((void*)p);(p)=NULL;}}
#ifdef _DEBUG