nightcoder
nightcoder

Reputation: 13537

OwnerDraw ComboBox is not "styled" anymore

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???

Upvotes: 2

Views: 902

Answers (1)

Hans Passant
Hans Passant

Reputation: 942508

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.

Upvotes: 2

Related Questions