10 enum class FontDialogFlags : DWORD {
20 ANSIOnly = 0x00000400,
36 EnableHook = 0x00000008,
40 EnableTemplate = 0x00000010,
44 EnableTemplateHandle = 0x00000020,
47 FixedPitchOnly = 0x00004000,
51 ForceFontExist = 0x00010000,
55 InavtiveFonts = 0x02000000,
58 InitToLogFontStruct = 0x00000040,
61 LimitSize = 0x00002000,
64 NoOemFonts = 0x00000800,
69 NoFaceSel = 0x00080000,
73 NoScriptSel = 0x00800000,
76 NoSimulations = 0x00001000,
81 NoSizeSel = 0x00200000,
86 NoStyleSel = 0x00100000,
89 NoVectorFonts = 0x00000800,
92 NoVertFonts = 0x01000000,
98 PrinterFonts = 0x00000002,
102 ScalableOnly = 0x00020000,
106 ScreenFonts = 0x00000001,
110 ScriptsOnly = 0x00000400,
114 SelectScript = 0x00400000,
118 ShowHelp = 0x00000004,
121 TrueTypeOnly = 0x00040000,
128 UseStyle = 0x00000080,
134 WYSIWYG = 0x00008000,
140 _SW_ENUM_ENABLE_BIT_OPERATIONS(FontDialogFlags);
字体选择对话框
Definition FontDialog.h:146
virtual int ShowDialog(Window *owner=nullptr) override
显示对话框,并指定所有者窗口
const Property< Color > SelectedColor
选择的颜色
Definition FontDialog.h:192
const Property< sw::Font > Font
选择的字体
Definition FontDialog.h:167
virtual int ShowDialog(Window &owner)
显示对话框,并指定所有者窗口
const Property< sw::FontWeight > FontWeight
选择的字体粗细
Definition FontDialog.h:182
const Property< std::wstring > FontName
选择的字体名称
Definition FontDialog.h:172
FontDialog()
初始化FontDialog
virtual void Close() override
FontDialog默认不支持该函数,调用该函数不会执行任何操作
const Property< FontDialogFlags > Flags
对话框的配置标志
Definition FontDialog.h:162
const Property< bool > ShowEffects
是否显示效果选项(下划线、删除线、颜色)
Definition FontDialog.h:187
CHOOSEFONTW * GetChooseFontStruct()
获取选择字体对话框的配置结构体
virtual void Show() override
FontDialog默认不支持该函数,调用该函数不会执行任何操作
const Property< double > FontSize
选择的字体大小
Definition FontDialog.h:177
对话框接口
Definition IDialog.h:11
属性
Definition Property.h:1743