diff options
author | René Schümann <white06tiger@gmail.com> | 2015-03-14 19:58:15 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2015-03-14 19:58:15 +0000 |
commit | 5a97f4b7c941dc704ab4dd2c370d19bb556c1ce6 (patch) | |
tree | 7ca8e397891238535958645ae5af8427068bcfd9 /plugins/MirOTR/src/icons.cpp | |
parent | 02eaf116807ce4b8b49dfaee47910d2dffbfef8f (diff) |
MirOTR: part 3, file/folder structure change
git-svn-id: http://svn.miranda-ng.org/main/trunk@12404 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/src/icons.cpp')
-rw-r--r-- | plugins/MirOTR/src/icons.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/plugins/MirOTR/src/icons.cpp b/plugins/MirOTR/src/icons.cpp new file mode 100644 index 0000000000..ca38927383 --- /dev/null +++ b/plugins/MirOTR/src/icons.cpp @@ -0,0 +1,36 @@ +#include "stdafx.h"
+
+TCHAR g_dllpath[1024];
+
+static IconItem iconList[] = {
+ { LPGEN(LANG_ICON_OTR), ICON_OTR, IDI_OTR },
+ { LPGEN(LANG_ICON_PRIVATE), ICON_PRIVATE, IDI_PRIVATE },
+ { LPGEN(LANG_ICON_UNVERIFIED), ICON_UNVERIFIED, IDI_UNVERIFIED },
+ { LPGEN(LANG_ICON_FINISHED), ICON_FINISHED, IDI_FINISHED },
+ { LPGEN(LANG_ICON_NOT_PRIVATE), ICON_NOT_PRIVATE, IDI_INSECURE },
+ { LPGEN(LANG_ICON_REFRESH), ICON_REFRESH, IDI_REFRESH }
+};
+
+void InitIcons()
+{
+ Icon_Register(hInst, "OTR", iconList, SIZEOF(iconList));
+}
+
+HICON LoadIcon(const char* name, int big) {
+ return Skin_GetIcon(name, big);
+}
+
+HANDLE GetIconHandle(const char* name)
+{
+ return Skin_GetIconHandle(name);
+}
+
+void ReleaseIcon(const char* name, int big)
+{
+ Skin_ReleaseIcon(name, big);
+}
+
+void ReleaseIcon(HICON handle, int big)
+{
+ Skin_ReleaseIcon(handle);
+}
|