Name
CHOOSEFONT
Synopsis
Used to define the Font common dialog box when it is created:
Public Type CHOOSEFONT
lStructSize As Long
hwndOwner As Long
hdc As Long
lpLogFont As Long
iPointSize As Long
flags As Long
rgbColors As Long
lCustData As Long
lpfnHook As Long
lpTemplateName As String
hInstance As Long
lpszStyle As String
nFontType As Integer
MISSING_ALIGNMENT As Integer
nSizeMin As Long
nSizeMax As Long
End TypeStructure Members
-
lStructSize Size of this structure.
-
hwndOwner Calling window’s handle.
-
hdc Printer DC/IC.
-
lpLogFont Pointer to the
LOGFONTstructure.-
iPointSize 10 * size in points of selected font.
-
flags Flags describing this common dialog box. You must set the
CF_ENABLETEMPLATEandCF_ENABLEHOOKflags must be set to use a modified template and a dialog hook function.-
rgbColors Returned text color.
-
lCustData Application-defined data passed in to the hook.
-
lpfnHook A pointer to the developer-defined dialog hook function.
-
lpTemplateName The ID of the modified dialog resource.
-
hInstance The instance handle of the object that contains the dialog resource. This is usually set equal to the
App.hInstanceproperty.-
lpszStyle Style field here must be
LF_FACESIZEor larger.-
nFontType Same value reported to the EnumFonts callback with the extra
FONTTYPEbits added.-
nSizeMin Minimum point size allowed.
-
nSizeMax Maximum point size allowed.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access