问题
I've created a custom combobox with DrawMode = OwnerDrawVariable. Everything is fine, except it doesn't use visual styles anymore in DropDownList mode, i.e. it looks like old combobox. How can I make it drawn using visual styles? I checked VisualStyleElement class but haven't found there anything that could help me.
Does it mean that OwnerDraw combobox can't be drawn with visual styles???
回答1:
I don't see anything in the 7.0 version of the SDK that allows drawing that style. The ComboBoxRenderer class doesn't pay attention to DropDownStyle at all. I think you're stuck.
来源:https://stackoverflow.com/questions/2125090/ownerdraw-combobox-is-not-styled-anymore