CHOOSECOLORS Type

Type CHOOSECOLORS
  lStructSize As Long
  hwndOwner As Long
  hInstance As Long
  rgbResult As Long
  lpCustColors As String
  flags As Long
  lCustData As Long
  lpfnHook As Long
  lpTemplateName As String
End Type

CHOOSECOLORS-type variables work with ChooseColor to create a Choose Color dialog box. This type holds both the data passed to the function and the data returned from it. (Note: The name of this data type is actually CHOOSECOLOR, but I renamed it in this guide because it would cause a conflict with case-insensitive languages like Visual Basic.)

lStructSize
The length in bytes of the entire variable (use the Len() function).
hwndOwner
The handle of the window opening the ChooseColor dialog.
hInstance
?
rgbResult
Set to the default color before calling ChooseColor. Receives the color the user selected, if any, when the box closes.
lpCustColors
A string holding the list of custom colors. For more information, see ChooseColor.
flags
Zero or more color dialog flags determining how to create the dialog box.
lCustData
?
lpfnHook
?
lpTemplateName
?

Used by: ChooseColor
Back to the index.


Back to Paul Kuliniewicz's Home Page
E-mail: Borg953@aol.com
This page is at http://members.aol.com/Borg953/api/types/choosecolors.html