summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/UMainForm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SendScreenshotPlus/src/UMainForm.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/UMainForm.cpp16
1 files changed, 5 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