Group: Common Dialog Box - Library: comdlg32
Using the ChooseColor function
BOOL ChooseColor(
LPCHOOSECOLOR lpcc // initialization data
); DECLARE INTEGER ChooseColor IN comdlg32;
STRING @lpcc lpcc [in/out] Pointer to a CHOOSECOLOR structure that contains information used to initialize the dialog box.
If the user clicks the OK button of the dialog box, the return value is nonzero. If the user cancels or closes the Color dialog box or an error occurs, the return value is zero.
Not many advantages this function gives to dump the good old GetColor, which is still dragged solicitously from version to version unchanged.
Home