Name
CHOOSECOLOR
Synopsis
Used to define the Color common dialog box when it is created:
Public Type CHOOSECOLOR lStructSize As Long hwndOwner As Long hInstance As Long rgbResult As Long lpCustColors As Long flags As Long lCustData As Long lpfnHook As Long lpTemplateName As long End Type
Structure Members
-
lStructSize
Size of this structure.
-
hwndOwner
Owning window.
-
hInstance
The instance handle of the object that contains the dialog resource. You usually set this equal to the App.hInstance property.
-
rgbResult
User-selected color returned to the application.
-
lpCustColors
Pointer to array of
COLORREF
structures.-
flags
Flags describing this common dialog box. You must set the
CC_ENABLETEMPLATE
andCC_ENABLEHOOK
flags to use a modified template and a dialog hook function.-
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.
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.