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 Type
Structure Members
-
lStructSize
Size of this structure.
-
hwndOwner
Calling window’s handle.
-
hdc
Printer DC/IC.
-
lpLogFont
Pointer to the
LOGFONT
structure.-
iPointSize
10 * size in points of selected font.
-
flags
Flags describing this common dialog box. You must set the
CF_ENABLETEMPLATE
andCF_ENABLEHOOK
flags 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.hInstance
property.-
lpszStyle
Style field here must be
LF_FACESIZE
or larger.-
nFontType
Same value reported to the EnumFonts callback with the extra
FONTTYPE
bits added.-
nSizeMin
Minimum point size allowed.
-
nSizeMax
Maximum point size allowed.
Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.