Click to See Complete Forum and Search --> : Cusomizing color dialog box...


Prem
March 31st, 1999, 10:54 AM
Hi All...


I am trying to customize the color dialog box...I need a color dlg box like MSWORD7.0 has...a 16 colors one...I have overidden Colordlg's constructor...no use...can any one suggest how to proceed for this...I need a Dlg box which is like a CColorDialog but it should have only 16standard colors....

Thanks,

TIA

prem

Wanton Killer
January 17th, 2000, 11:23 PM
Hi Prem,

I'm not sure of a way you can get CColorDialog to open with 16 colors, but how they implement it in Word7 I think is by the use of CComboBoxEx. I haven't tried to implement this myself, but you can provide your own image list for the 16 colors you want and handle them by which is selected.

Good Luck!