summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_icons.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-02-19 13:33:46 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-02-19 13:33:46 +0000
commit36df84a13018c6c26e7cd1bb8e093dc54393aed7 (patch)
treebe220c6dd21741370af430e066486143a4cc747f /plugins/Dropbox/src/dropbox_icons.cpp
parenta8934644810474ad6f367759ee0ea14da12909de (diff)
folder rename
git-svn-id: http://svn.miranda-ng.org/main/trunk@8179 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_icons.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_icons.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_icons.cpp b/plugins/Dropbox/src/dropbox_icons.cpp
new file mode 100644
index 0000000000..c781369f8e
--- /dev/null
+++ b/plugins/Dropbox/src/dropbox_icons.cpp
@@ -0,0 +1,33 @@
+#include "dropbox.h"
+
+void CDropbox::InitIcons()
+{
+ wchar_t filePath[MAX_PATH];
+ GetModuleFileName(g_hInstance, filePath, MAX_PATH);
+
+ wchar_t sectionName[100];
+ mir_sntprintf(
+ sectionName,
+ SIZEOF(sectionName),
+ _T("%s/%s"),
+ LPGENT("Protocols"),
+ LPGENT(MODULE));
+
+ char settingName[100];
+ mir_snprintf(
+ settingName,
+ SIZEOF(settingName),
+ "%s_%s",
+ MODULE,
+ "main");
+
+ SKINICONDESC sid = {0};
+ sid.cbSize = sizeof(SKINICONDESC);
+ sid.flags = SIDF_ALL_TCHAR;
+ sid.ptszDefaultFile = filePath;
+ sid.pszName = settingName;
+ sid.ptszSection = sectionName;
+ sid.ptszDescription = LPGENT("Protocol icon");
+ sid.iDefaultIndex = -IDI_DROPBOX;
+ /*HANDLE hIcon = */Skin_AddIcon(&sid);
+} \ No newline at end of file