Here is the solution for your original question:
Create
CHOOSECOLOR structure[
^]
set CC_RGBINIT flag and set rgbResult to wanted color.
this is the original text from MSDN:
"rgbResult
Type: COLORREF
If the CC_RGBINIT flag is set, rgbResult specifies the color initially selected when the dialog box is created. If the specified color value is not among the available colors, the system selects the nearest solid color available. If rgbResult is zero or CC_RGBINIT is not set, the initially selected color is black. If the user clicks the OK button, rgbResult specifies the user's color selection. To create a COLORREF color value, use the RGB macro.
"
This is the link to
Open color dialog[
^]