From 4df260317b8bd47ca65dca24b376b68b765a378f Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 19 Feb 2014 12:23:54 +0000 Subject: DropBox: - reorganization of projects and code - added access request at contact's menu - temporary disabled folders sending - added dropbox icon - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@8174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DropBox/src/dropbox_icons.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 plugins/DropBox/src/dropbox_icons.cpp (limited to 'plugins/DropBox/src/dropbox_icons.cpp') 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 -- cgit v1.2.3