PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Gary Stout on December 24, 2015, 12:19:57 PM

Title: Combobox with CBS_DROPDOWNLIST
Post by: Gary Stout on December 24, 2015, 12:19:57 PM
Is it possible to set text to the "label" portion of a Combobox that uses the CBS_DROPDOWNLIST Window style? I am able to set the text if I use the CBS_DROPDOWN style but I get other undesirable results (background color issues) with the combobox when I do that. When the combobox has focus, I am changing the background color, but it seems that using CBS_DROPDOWN causes the background color to change when the control doesn't have focus.

Thanks and Merry Christmas to all!
Gary
Title: Re: Combobox with CBS_DROPDOWNLIST
Post by: Gary Stout on December 24, 2015, 02:52:29 PM
I think I have found the simpliest solution to this problem.....
Create another hidden Combobox with the CBS_DROPDOWN style,
Hide original combobox with CBS_DROPDOWNLIST,
Show new hidden control until finished with process and then hide this Combo and show original.

Other than the background color issues of the one with the CBS_DROPDOWN style, this method seems to work acceptable.

Thanks,
Gary