Common Color Dialog Box
The implementation of the Color Dialog Box is relatively straight forward in filling up the values of the color structure.  Much grief can be avoided if one always bear in mind that Microsoft is not very consistent in doing things.  Most of the time when a field in the structure is not used, a null address value is used.  However this is not the case with the custom color field.  It must contain the address of an array of 16 RGB values.  Once this was done, the problem went away.

Back To Home