June 2001
Intermediate to advanced
706 pages
24h 10m
English
CHOOSECOLOR
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 TypelStructSize
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 and
CC_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.
Read now
Unlock full access