diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-30 13:50:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-30 13:50:50 +0300 |
commit | 2132aa7dfe2a71265e540cef0ec48543050c1004 (patch) | |
tree | 53b5c6281d7c9687f5934b61604012ad0253df89 /plugins | |
parent | 9a491246052dcdc74e53132ec81918097ba01e33 (diff) |
fixes #2366 (TabSRMM: кракозябры в винде, где нет поддержки русского)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/res/resource.rc | 1 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgoptions.cpp | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/res/resource.rc b/plugins/TabSRMM/res/resource.rc index 442c04d10c..db49db3cbc 100644 --- a/plugins/TabSRMM/res/resource.rc +++ b/plugins/TabSRMM/res/resource.rc @@ -431,7 +431,6 @@ END IDD_TEMPLATEEDIT DIALOGEX 0, 0, 368, 231
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
GROUPBOX "Templates",IDC_STATIC,3,4,108,94
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 3785513c8c..2c7e801de2 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -702,8 +702,9 @@ public: else
SetTextColor(dis->hDC, GetSysColor(COLOR_WINDOWTEXT));
}
- char *pszName = Translate(TemplateNames[iItem]);
- TextOutA(dis->hDC, dis->rcItem.left, dis->rcItem.top, pszName, (int)mir_strlen(pszName));
+
+ auto *pwszName = TranslateW(_A2T(TemplateNames[iItem]));
+ TextOutW(dis->hDC, dis->rcItem.left, dis->rcItem.top, pwszName, (int)mir_wstrlen(pwszName));
}
return CSrmmBaseDialog::DlgProc(uMsg, wParam, lParam);
|