OwnerDraw ComboBox is not “styled” anymore

好久不见. 提交于 2019-12-02 05:17:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!