extern HWND hwndConsole;\r
extern char *defaultTextAttribs[];\r
extern HWND commentDialog;\r
+extern HWND moveHistoryDialog;
extern char installDir[];\r
extern HWND hCommPort; /* currently open comm port */\r
extern DCB dcb;\r
SetSampleFontText(hDlg, OPT_SampleTagFont, &workFont[EDITTAGS_FONT]);\r
SetSampleFontText(hDlg, OPT_SampleCommentsFont, &workFont[COMMENT_FONT]);\r
SetSampleFontText(hDlg, OPT_SampleConsoleFont, &workFont[CONSOLE_FONT]);\r
+ SetSampleFontText(hDlg, OPT_SampleMoveHistoryFont, &workFont[MOVEHISTORY_FONT]);
firstPaint = FALSE;\r
}\r
break;\r
CopyFont(font[i][EDITTAGS_FONT], &workFont[EDITTAGS_FONT]);\r
CopyFont(font[i][CONSOLE_FONT], &workFont[CONSOLE_FONT]);\r
CopyFont(font[i][COMMENT_FONT], &workFont[COMMENT_FONT]);\r
+ CopyFont(font[i][MOVEHISTORY_FONT], &workFont[MOVEHISTORY_FONT]);
}\r
/* end sad necessity */\r
\r
InvalidateRect(editTagsDialog, &rect, TRUE);\r
}\r
\r
+ if( moveHistoryDialog != NULL ) {
+ SendDlgItemMessage(moveHistoryDialog, IDC_MoveHistory,
+ WM_SETFONT, (WPARAM)font[boardSize][MOVEHISTORY_FONT]->hf,
+ MAKELPARAM(TRUE, 0));
+ InvalidateRect(editTagsDialog, NULL, TRUE);
+ }
+
if (hwndConsole) {\r
ChangedConsoleFont();\r
}\r
SetSampleFontText(hDlg, OPT_SampleConsoleFont, &workFont[CONSOLE_FONT]);\r
break;\r
\r
+ case OPT_ChooseMoveHistoryFont:
+ MyCreateFont(hDlg, &workFont[MOVEHISTORY_FONT]);
+ SetSampleFontText(hDlg, OPT_SampleMoveHistoryFont, &workFont[MOVEHISTORY_FONT]);
+ break;
+
case OPT_DefaultFonts:\r
for (i=0; i<NUM_FONTS; i++) {\r
DeleteObject(&workFont[i].hf);\r
SetSampleFontText(hDlg, OPT_SampleTagFont, &workFont[EDITTAGS_FONT]);\r
SetSampleFontText(hDlg, OPT_SampleCommentsFont, &workFont[COMMENT_FONT]);\r
SetSampleFontText(hDlg, OPT_SampleConsoleFont, &workFont[CONSOLE_FONT]);\r
+ SetSampleFontText(hDlg, OPT_SampleMoveHistoryFont, &workFont[MOVEHISTORY_FONT]);
break;\r
}\r
}\r