zen.ishtar :: Ten WTL Tips and Tricks:
"11. Default Font
When a control is placed on a dialog it automatically assumes the font used by the dialog. However, when a control is used in a window implementation such as a view or splitter pane, it uses SYSTEM_FONT which is not very attractive. Add atlmisc.h to your project so that AtlGetStockFont is available, then use this tip to select DEFAULT_GUI_FONT, a TrueType font object.
MyControl.SetFont(AtlGetStockFont(DEFAULT_GUI_FONT), TRUE);"
This could be troublesome if we have a lot of controls that needs to change this font type and size.
没有评论:
发表评论