| Type CHOOSECOLOR_TYPE 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 CHOOSECOLOR_TYPE-type variables work with ChooseColor to create a Choose Color dialog box. This structure holds both the data passed to the function and the data returned from it. (Note: The official name of this data structure is actually CHOOSECOLOR, but I renamed it in this guide because it would cause a naming conflict with the ChooseColor function in 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 Handle to a dialog template to use in place of the default box. Set to 0 to use the Windows default. (only used if the CC_ENABLETEMPLATE or CC_ENABLETEMPLATEHANDLE flag is used) 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 of the following flags determining how to create the dialog box: CC_ANYCOLOR = &H100 Return the textured-color equivalent of the selected color even if it is not solid. CC_ENABLEHOOK = &H10 Call the function referenced by lpfnHook to process the dialog box's messages. CC_ENABLETEMPLATE = &H20 Use the dialog box template identidied by hInstance and lpTemplateName. CC_ENABLETEMPLATEHANDLE = &H40 Use the preloaded dialog box template identified by hInstance, ignoring lpTemplateName. CC_FULLOPEN = &H2 Automatically display the Define Custom Colors half of the dialog box. CC_PREVENTFULLOPEN = &H4 Disable the button that displays the Define Custom Colors half of the dialog box. CC_RGBINIT = &H1 Make the color specified by rgbResult be the initially selected color. CC_SHOWHELP = &H8 Display the Help button. CC_SOLIDCOLOR = &H80 Return the closest solid-color equivalent of the selected color. lCustData Value to pass to the function referenced by lpfnHook whenever it is called. lpfnHook Handle to the hook function that processes the dialog box's messages. The function must return 0 to pass the message back to the dialog box or 1 to not pass it. (only used if the CC_ENABLEHOOK flag is used) lpTemplateName Null-terminated string holding the name of the dialog box template to use. (only used if the CC_ENABLETEMPLATE flag is used) |
CHOOSECOLOR_TYPE Structure |
India web developer web development India | Freelance web development ecommerce web developer | Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design