diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-21 13:57:06 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-21 13:57:06 +0000 |
commit | 0312ed9ab8fa1fbdae202dc1efe1a36c02861818 (patch) | |
tree | 10fba4dc7e661ec59502f8e34958450a90ca6130 /plugins/SendScreenshotPlus/src | |
parent | c0c9165efc0c69952509187328306b047fde4b6c (diff) |
i think it is final version.
Stop revert my commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@13010 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src')
-rw-r--r-- | plugins/SendScreenshotPlus/src/UMainForm.cpp | 16 | ||||
-rw-r--r-- | plugins/SendScreenshotPlus/src/global.h | 1 |
2 files changed, 6 insertions, 11 deletions
diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp index 6214ba2763..7125537002 100644 --- a/plugins/SendScreenshotPlus/src/UMainForm.cpp +++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp @@ -170,21 +170,15 @@ void TfrmMain::wmInitdialog(WPARAM wParam, LPARAM lParam) { /// Taskbar and Window icon SendMessage(m_hWnd, WM_SETICON, ICON_BIG, (LPARAM)GetIcon(ICO_MAIN)); SendMessage(m_hWnd, WM_SETICON, ICON_SMALL, (LPARAM)GetIcon(ICO_MAINXS)); - TCHAR* pt = mir_a2t(__PLUGIN_NAME); - SetWindowText(m_hWnd, pt); - mir_free(pt); - - /// Headerbar - pt = mir_tstrdup((TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)m_hContact, (LPARAM)GCDNF_TCHAR)); + TCHAR *pt = mir_tstrdup((TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)m_hContact, (LPARAM)GCDNF_TCHAR)); if (pt && (m_hContact != 0)) { - TCHAR* lptString = NULL; - mir_tstradd(lptString , TranslateT("Send screenshot to\n")); - mir_tstradd(lptString , pt); - SetDlgItemText(m_hWnd, IDC_HEADERBAR, lptString); - mir_free(lptString); + CMString string; + string.AppendFormat(_T("Send screenshot to %s"), pt); + SetWindowText(m_hWnd, string); } mir_free(pt); + /// Headerbar SendDlgItemMessage(m_hWnd, IDC_HEADERBAR, WM_SETICON, ICON_BIG, (LPARAM)GetIcon(ICO_MAIN)); /// Timed controls diff --git a/plugins/SendScreenshotPlus/src/global.h b/plugins/SendScreenshotPlus/src/global.h index 44f1047da7..41e4fec0dd 100644 --- a/plugins/SendScreenshotPlus/src/global.h +++ b/plugins/SendScreenshotPlus/src/global.h @@ -70,6 +70,7 @@ using namespace std; #include <m_skin.h> #include <m_popup.h> #include <m_icolib.h> +#include <m_string.h> #include <m_folders.h> #include <m_HTTPServer.h> |