Name

ChooseColor

Synopsis

Displays the Color common dialog box:

Public Declare Function ChooseColor Lib "comdlg32.dll" Alias "ChooseColorA" _
		(pChoosecolor As CHOOSECOLOR) As Long

Parameters

pChoosecolor

A pointer to a CHOOSECOLOR structure

Return Value

Returns 0 if there is an error, the Close button on the title bar was clicked, or the Cancel button was clicked. Otherwise, returns a nonzero value.

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.