Setting colors to Disabled Controls

  • Thread starter Thread starter DC
  • Start date Start date
D

DC

Hi All,

When a control is disabled, it is grayed out.
Is there anyway to set a different foreground/background color for disabled
controls (combobox, textbox, etc).

Thanks.
DC
 
Hi,

No.

Ken
-----------------
Hi All,

When a control is disabled, it is grayed out.
Is there anyway to set a different foreground/background color for disabled
controls (combobox, textbox, etc).

Thanks.
DC
 
Ok.
In that case, is there a way to get the handle of the editable portion of
the combo box.
What I am thinking of is paint the disabled region with a different color,
and draw the combobox string in a contrasting color on the painted
rectangle.
Is this possible.

Regards,
DC
 
Any ideas anyone?



DC said:
Ok.
In that case, is there a way to get the handle of the editable portion of
the combo box.
What I am thinking of is paint the disabled region with a different color,
and draw the combobox string in a contrasting color on the painted
rectangle.
Is this possible.

Regards,
DC
 
Thanks Herfried.
I'll try the sample and get back - may take some time, but will post here.

Regards,
DC
 
Back
Top