AppSerialize appser(AppSerialize::Save, sFontPath);
appser.SerializeFont(_T(""), *lf); // unnamed font
- DirViewList dirViews;
- MergeEditViewList editViews;
- GetAllViews(&editViews, NULL, &dirViews);
-
- if (editViews.GetCount() > 0 || dirViews.GetCount() > 0)
- AfxMessageBox(IDS_FONT_CHANGE, MB_ICONINFORMATION | MB_DONT_DISPLAY_AGAIN, IDS_FONT_CHANGE);
-
if (bDirFrame)
m_lfDir = *lf;
else
// update pEditView for font change
}
*/
+
+ ShowFontChangeMessage();
}
}
m_options.SaveOption(OPT_FONT_FILECMP_USECUSTOM, false);
GetFontProperties();
+ ShowFontChangeMessage();
}
/**
return TRUE;
}
+
+/**
+ * @brief When font is changed open views must be closed.
+ */
+void CMainFrame::ShowFontChangeMessage()
+{
+ DirViewList dirViews;
+ MergeEditViewList editViews;
+ GetAllViews(&editViews, NULL, &dirViews);
+
+ if (editViews.GetCount() > 0 || dirViews.GetCount() > 0)
+ AfxMessageBox(IDS_FONT_CHANGE, MB_ICONINFORMATION | MB_DONT_DISPLAY_AGAIN, IDS_FONT_CHANGE);
+}
void RedisplayAllDirDocs();
CMergeDoc * GetMergeDocToShow(CDirDoc * pDirDoc, BOOL * pNew);
CDirDoc * GetDirDocToShow(BOOL * pNew);
+ void ShowFontChangeMessage();
};
extern CMainFrame *mf;
Src: OpenDlg.cpp paths.cpp paths.h
PATCH: [ 1189692 ] Cleanup Dircompare init
Src: DirDoc.cpp DirDoc.h MainFrm.cpp PathContext.cpp PathContext.h
+ BUG: [ 1181883 ] Inconsistent behavior: select font vs. Use default
+ Src: MainFrm.cpp MainFrm.h
2005-04-25 Kimmo
BUG: [ 1179790 ] ReadMe-Hungarian.rtf file is missing