Web development India freelance website designer developer India SEO

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

151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300

India web developer web development India | Freelance web development ecommerce web developer | Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design