I have a couple programs which have a fairly large number (currenty about 35, possible up to about 50) of parameters that can be selected using combobox controls. I am currently using the combobox with dropdownlist style; I want to restrict selections to those in the list and prohibit editing.
I would like to keep all the controls present in a single dialog (a control panel), but the controls seem to be unecessarily large for the font I am using - Tahoma size 8.
The problem is that the text in the combobox selection field is positioned lower than it needs to be, and the field has to be extra large to avoid clipping off the character desenders. For example, if I place the same selection text in a listbox, sized to hold only the selection, I can make it significantly smaller than the combobox selection field.
This alone (using a listbox just for the selection) would work well for displaying all the parameter values in a small control panel, but then I would still need a selection list box of some type to select parameters from. I tried opening up a separate listbox containing the selections, but I cannot find a way to keep the listbox on top of all the other controls. The list appears on top of some of the other controls, but is obscured by others. Also, the listbox cannot extend out beyond the border of the dialog; it becomes clipped at the border. In contrast, the dropdown lists for comboboxes are always on top and can extend beyond the dialog border as needed.
1) Is there some way to use listboxes to provide the same functionality as a dropdownlist combobox?
2) As I am currently using dropdownlist style comboboxes, is there any way to remove the highlight that occurs on the selection when an item is selected? (CB_SETEDITSEL does not work on dropdownlist style)
3) Is the ownerdraw style a feasible way to draw a large number of controls, each with possibly differing lists?
-