的OwnerDraw组合框不为QUOT;样式"再 [英] OwnerDraw ComboBox is not "styled" anymore

查看:134
本文介绍了的OwnerDraw组合框不为QUOT;样式"再的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了一个自定义组合框与DrawMode = OwnerDrawVariable。一切都很好,但它不使用视觉样式不再在DropDownList的模式,即它看起来像旧的组合框。我怎样才能让使用视觉样式绘制它?我检查VisualStyleElement类,但没有发现有什么可以帮助我。


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.

这是否意味着的OwnerDraw组合框无法用视觉样式绘制???

Does it mean that OwnerDraw combobox can't be drawn with visual styles???

推荐答案

我不明白,在7.0版本,它允许绘图风格SDK的任何东西。该ComboBoxRenderer类不注重DropDownStyle的。我想,你就完蛋了。

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.

这篇关于的OwnerDraw组合框不为QUOT;样式"再的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆