diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-19 09:54:12 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-19 09:54:12 +0000 |
commit | fd7a3ebacbdac24fd557b20f10282556bfd77bc9 (patch) | |
tree | 4bc5971394310ae46595d632be92e29466767ad0 /plugins/SendScreenshotPlus/src/UMainForm.cpp | |
parent | 9d19759010b01dad3f78123aff35a91891af64a4 (diff) |
SendSS: fix sending to jabber; more other fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15394 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/UMainForm.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/UMainForm.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp index b0dba2015a..517d3620be 100644 --- a/plugins/SendScreenshotPlus/src/UMainForm.cpp +++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp @@ -983,18 +983,19 @@ INT_PTR TfrmMain::SaveScreenshot(FIBITMAP* dib) mir_free(path); //Generate a description according to the screenshot + TCHAR winText[1024]; - mir_tstradd(pszFileDesc, TranslateT("Screenshot ")); - if (m_opt_tabCapture == 0 && m_opt_chkClientArea) { - mir_tstradd(pszFileDesc, TranslateT("for Client area ")); - } - mir_tstradd(pszFileDesc, TranslateT("of \"")); GetDlgItemText(m_hwndTabPage, ID_edtCaption, winText, _countof(winText)); - mir_tstradd(pszFileDesc, winText); - if (m_opt_tabCapture == 1) - mir_tstradd(pszFileDesc, _T("\"")); - else - mir_tstradd(pszFileDesc, TranslateT("\" Window")); + + + CMString tszFileDesc; + + if (!m_opt_tabCapture && m_opt_chkClientArea) + tszFileDesc.Format(TranslateT("Screenshot for Client area of \"%s\""), winText); + else + tszFileDesc.Format(TranslateT("Screenshot of \"%s\" window"), winText); + + pszFileDesc = tszFileDesc.Detach(); // convert to 32Bits (make shure it is 32bit) FIBITMAP *dib_new = FIP->FI_ConvertTo32Bits(dib); |