summaryrefslogtreecommitdiff
path: root/plugins/MsgPopup/src/options.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-21 13:26:35 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-21 13:26:35 +0000
commit3dbd6f1f7a43d972e4acf58c83b9c848f0da1390 (patch)
treecd6ed5439852d2585d91cf4be317e9c3c50f7937 /plugins/MsgPopup/src/options.cpp
parent9efa948c0854af1e85410e086b566e38158118b2 (diff)
MsgPopup adopted
git-svn-id: http://svn.miranda-ng.org/main/trunk@4143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MsgPopup/src/options.cpp')
-rw-r--r--plugins/MsgPopup/src/options.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/plugins/MsgPopup/src/options.cpp b/plugins/MsgPopup/src/options.cpp
index b5467dcbe5..2b251b57ae 100644
--- a/plugins/MsgPopup/src/options.cpp
+++ b/plugins/MsgPopup/src/options.cpp
@@ -60,10 +60,10 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
BOOL Translated;
if(LOWORD(wParam) == IDC_PREVIEW)
{
- MessageBoxA(0, Translate("Message with question"), Translate(SERVICENAME " - demo"), MB_ICONQUESTION);
- MessageBoxA(0, Translate("Message with exclamation"), Translate(SERVICENAME " - demo"), MB_ICONEXCLAMATION);
- MessageBoxA(0, Translate("Message with error"), Translate(SERVICENAME " - demo"), MB_ICONSTOP);
- MessageBoxA(0, Translate("Message with asterisk"), Translate(SERVICENAME " - demo"), MB_ICONASTERISK);
+ MessageBox(0, TranslateT("Message with question"), TranslateTS(_T(SERVICENAME) _T(" - demo")), MB_ICONQUESTION);
+ MessageBox(0, TranslateT("Message with exclamation"), TranslateTS(_T(SERVICENAME) _T(" - demo")), MB_ICONEXCLAMATION);
+ MessageBox(0, TranslateT("Message with error"), TranslateTS(_T(SERVICENAME) _T(" - demo")), MB_ICONSTOP);
+ MessageBox(0, TranslateT("Message with asterisk"), TranslateTS(_T(SERVICENAME) _T(" - demo")), MB_ICONASTERISK);
return FALSE;
}
@@ -107,14 +107,16 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
case PSN_APPLY:
{
- char *szNameFG = "FGx";
- char *szNameBG = "BGx";
- char *szNameTO = "TOx";
+ char szNameFG[4];
+ char szNameBG[4];
+ char szNameTO[4];
int indx;
for(indx = 0; indx < 4; indx++)
{
- szNameFG[2] = szNameBG[2] = szNameTO[2] = (char)(indx + '0');
+ mir_snprintf(szNameFG, SIZEOF(szNameFG), "FG%d", indx);
+ mir_snprintf(szNameBG, SIZEOF(szNameBG), "BG%d", indx);
+ mir_snprintf(szNameTO, SIZEOF(szNameTO), "TO%d", indx);
DBWriteContactSettingDwordDef(NULL, SERVICENAME, szNameFG, options.FG[indx], optionsDefault.FG[indx]);
DBWriteContactSettingDwordDef(NULL, SERVICENAME, szNameBG, options.BG[indx], optionsDefault.BG[indx]);