summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_icons.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-09-27 08:54:13 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-09-27 08:54:13 +0000
commitff29f186b04d8bbddef31411e1d6dee4b48474ab (patch)
treea41aec1e42fd819ca4898528c26526a931cceff5 /protocols/Skype/src/skype_icons.cpp
parent4a57667c0372692f38be7457a1d11346af5e17c1 (diff)
added few code
git-svn-id: http://svn.miranda-ng.org/main/trunk@1678 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_icons.cpp')
-rw-r--r--protocols/Skype/src/skype_icons.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_icons.cpp b/protocols/Skype/src/skype_icons.cpp
new file mode 100644
index 0000000000..cbd893fb2d
--- /dev/null
+++ b/protocols/Skype/src/skype_icons.cpp
@@ -0,0 +1,39 @@
+#include "skype_proto.h"
+
+struct _tag_iconList
+{
+ TCHAR* szDescr;
+ char* szName;
+ int defIconID;
+ HANDLE hIconLibItem;
+}
+
+static iconList[] =
+{
+ {LPGENT("Protocol icon"), "main", IDI_ICON},
+};
+
+void IconsLoad()
+{
+ TCHAR szFile[MAX_PATH];
+ char szSettingName[100];
+ SKINICONDESC sid = {0};
+ unsigned i;
+
+ GetModuleFileName(hInst, szFile, MAX_PATH);
+
+ sid.cbSize = sizeof(SKINICONDESC);
+ sid.flags = SIDF_ALL_TCHAR;
+ sid.ptszDefaultFile = szFile;
+ sid.pszName = szSettingName;
+ sid.ptszSection = _T(MODULE);
+
+ for (i = 0; i < SIZEOF(iconList); i++)
+ {
+ mir_snprintf(szSettingName, SIZEOF(szSettingName), "%s_%s", MODULE, iconList[i].szName);
+
+ sid.ptszDescription = iconList[i].szDescr;
+ sid.iDefaultIndex = -iconList[i].defIconID;
+ iconList[i].hIconLibItem = Skin_AddIcon(&sid);
+ }
+} \ No newline at end of file