summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/MirandaDialog.cpp
diff options
context:
space:
mode:
authorPhilip Schell <github.com@blubbfish.net>2013-10-19 13:05:02 +0000
committerPhilip Schell <github.com@blubbfish.net>2013-10-19 13:05:02 +0000
commit397e25f2b71347c7c83495fe5b25496ff3b02b75 (patch)
tree71f6ad2ef525218541a7a35cc659b4fb7bf047d6 /plugins/WinterSpeak/src/MirandaDialog.cpp
parent9e786b686fae94e71279a797047a91ffdc4b0443 (diff)
WinterSpeak: ticket:269 WinterSpeak now rewritten
git-svn-id: http://svn.miranda-ng.org/main/trunk@6532 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WinterSpeak/src/MirandaDialog.cpp')
-rw-r--r--plugins/WinterSpeak/src/MirandaDialog.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/plugins/WinterSpeak/src/MirandaDialog.cpp b/plugins/WinterSpeak/src/MirandaDialog.cpp
new file mode 100644
index 0000000000..fad87285f6
--- /dev/null
+++ b/plugins/WinterSpeak/src/MirandaDialog.cpp
@@ -0,0 +1,38 @@
+#include "Common.h"
+#include "MirandaDialog.h"
+
+
+MirandaDialog::MirandaDialog(void)
+{
+}
+
+
+MirandaDialog::~MirandaDialog(void)
+{
+}
+
+void MirandaDialog::changed(HWND window)
+{
+ SendMessage(GetParent(window), PSM_CHANGED, 0, 0);
+}
+
+WCHAR *MirandaDialog::Hlp_GetDlgItemText(HWND hwndDlg, int nIDDlgItem) {
+
+ int len = SendDlgItemMessage(hwndDlg, nIDDlgItem, WM_GETTEXTLENGTH, 0, 0);
+ if (len < 0)
+ return NULL;
+
+ WCHAR *res = (WCHAR*)mir_alloc((len+1)*sizeof(WCHAR));
+ ZeroMemory(res, (len+1)*sizeof(WCHAR));
+ GetDlgItemText(hwndDlg, nIDDlgItem, res, len+1);
+
+ return res;
+}
+
+int MirandaDialog::ImageList_AddIcon_IconLibLoaded(HIMAGELIST hIml, int iconId)
+{
+ HICON hIcon = LoadSkinnedIcon(iconId);
+ int res = ImageList_AddIcon(hIml, hIcon);
+ Skin_ReleaseIcon(hIcon);
+ return res;
+} \ No newline at end of file