\r
/* Center the dialog over the application window */\r
CenterWindow (hDlg, GetWindow (hDlg, GW_OWNER));\r
+ Translate(hDlg, DLG_GeneralOptions);\r
\r
/* Initialize the dialog items */\r
#define CHECK_BOX(x,y) CheckDlgButton(hDlg, (x), (BOOL)(y))\r
font->mfp.underline = font->lf.lfUnderline;\r
font->mfp.strikeout = font->lf.lfStrikeOut;\r
font->mfp.charset = font->lf.lfCharSet;\r
- strcpy(font->mfp.faceName, font->lf.lfFaceName);\r
+ safeStrCpy(font->mfp.faceName, font->lf.lfFaceName, sizeof(font->mfp.faceName)/sizeof(font->mfp.faceName[0]) );\r
return TRUE;\r
}\r
\r
CFM_COLOR|CFM_CHARSET|CFM_BOLD|CFM_ITALIC|CFM_UNDERLINE|CFM_STRIKEOUT|CFM_FACE|CFM_SIZE;\r
cf.crTextColor = mca->color;\r
cf.dwEffects = mca->effects;\r
- strcpy(cf.szFaceName, font[boardSize][CONSOLE_FONT]->mfp.faceName);\r
+ safeStrCpy(cf.szFaceName, font[boardSize][CONSOLE_FONT]->mfp.faceName, sizeof(cf.szFaceName)/sizeof(cf.szFaceName[0]) );\r
/* \r
* The 20.0 below is in fact documented. yHeight is expressed in twips.\r
* A twip is 1/20 of a font's point size. See documentation of CHARFORMAT.\r
/* set the background color */\r
SendDlgItemMessage(hDlg, OPT_Sample, EM_SETBKGNDCOLOR, FALSE, background);\r
\r
- SetDlgItemText(hDlg, OPT_Sample, mca.name);\r
+ SetDlgItemText(hDlg, OPT_Sample, T_(mca.name));\r
UpdateSampleText(hDlg, OPT_Sample, &mca);\r
return TRUE;\r
\r
SendDlgItemMessage(hDlg, OPT_SampleSeek, EM_SETBKGNDCOLOR, 0, cbc);\r
SendDlgItemMessage(hDlg, OPT_SampleNormal, EM_SETBKGNDCOLOR, 0, cbc);\r
\r
- SetDlgItemText(hDlg, OPT_SampleShout, mca[ColorShout].name);\r
- SetDlgItemText(hDlg, OPT_SampleSShout, mca[ColorSShout].name);\r
- SetDlgItemText(hDlg, OPT_SampleChannel1, mca[ColorChannel1].name);\r
- SetDlgItemText(hDlg, OPT_SampleChannel, mca[ColorChannel].name);\r
- SetDlgItemText(hDlg, OPT_SampleKibitz, mca[ColorKibitz].name);\r
- SetDlgItemText(hDlg, OPT_SampleTell, mca[ColorTell].name);\r
- SetDlgItemText(hDlg, OPT_SampleChallenge, mca[ColorChallenge].name);\r
- SetDlgItemText(hDlg, OPT_SampleRequest, mca[ColorRequest].name);\r
- SetDlgItemText(hDlg, OPT_SampleSeek, mca[ColorSeek].name);\r
- SetDlgItemText(hDlg, OPT_SampleNormal, mca[ColorNormal].name);\r
+ SetDlgItemText(hDlg, OPT_SampleShout, T_(mca[ColorShout].name));\r
+ SetDlgItemText(hDlg, OPT_SampleSShout, T_(mca[ColorSShout].name));\r
+ SetDlgItemText(hDlg, OPT_SampleChannel1, T_(mca[ColorChannel1].name));\r
+ SetDlgItemText(hDlg, OPT_SampleChannel, T_(mca[ColorChannel].name));\r
+ SetDlgItemText(hDlg, OPT_SampleKibitz, T_(mca[ColorKibitz].name));\r
+ SetDlgItemText(hDlg, OPT_SampleTell, T_(mca[ColorTell].name));\r
+ SetDlgItemText(hDlg, OPT_SampleChallenge, T_(mca[ColorChallenge].name));\r
+ SetDlgItemText(hDlg, OPT_SampleRequest, T_(mca[ColorRequest].name));\r
+ SetDlgItemText(hDlg, OPT_SampleSeek, T_(mca[ColorSeek].name));\r
+ SetDlgItemText(hDlg, OPT_SampleNormal, T_(mca[ColorNormal].name));\r
\r
UpdateSampleText(hDlg, OPT_SampleShout, &mca[ColorShout]);\r
UpdateSampleText(hDlg, OPT_SampleSShout, &mca[ColorSShout]);\r
cf.dwEffects = 0;\r
if (mf->lf.lfWeight == FW_BOLD) cf.dwEffects |= CFE_BOLD;\r
if (mf->lf.lfItalic) cf.dwEffects |= CFE_ITALIC;\r
- strcpy(cf.szFaceName, mf->mfp.faceName);\r
+ safeStrCpy(cf.szFaceName, mf->mfp.faceName, sizeof(cf.szFaceName)/sizeof(cf.szFaceName[0]) );\r
/*\r
* yHeight is expressed in twips. A twip is 1/20 of a font's point\r
* size. See documentation of CHARFORMAT. --msw\r
dest->mfp.underline = src->mfp.underline;\r
dest->mfp.strikeout = src->mfp.strikeout;\r
dest->mfp.charset = src->mfp.charset;\r
- lstrcpy(dest->mfp.faceName, src->mfp.faceName);\r
+ lsafeStrCpy(dest->mfp.faceName, src->mfp.faceName, sizeof(dest->mfp.faceName)/sizeof(dest->mfp.faceName[0]) );\r
CreateFontInMF(dest);\r
}\r
\r
\r
/* send the labels to the combo box */\r
while (scd->label) {\r
- err = SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM) scd->label);\r
+ err = SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM) T_(scd->label));\r
if (err != cnt++) {\r
sprintf(buf, "InitSoundCombo(): err '%d', cnt '%d'\n",\r
(int)err, (int)cnt);\r
\r
OPENFILENAME ofn;\r
\r
- strcpy( buf, "" );\r
+ safeStrCpy( buf, "" , sizeof( buf)/sizeof( buf[0]) );\r
\r
ZeroMemory( &ofn, sizeof(ofn) );\r
\r