From 0312ed9ab8fa1fbdae202dc1efe1a36c02861818 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 21 Apr 2015 13:57:06 +0000 Subject: 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 --- plugins/SendScreenshotPlus/src/UMainForm.cpp | 16 +++++----------- plugins/SendScreenshotPlus/src/global.h | 1 + 2 files changed, 6 insertions(+), 11 deletions(-) (limited to 'plugins/SendScreenshotPlus/src') 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 #include #include +#include #include #include -- cgit v1.2.3