的OwnerDraw组合框不为QUOT;样式"再组合、不为、样式、OwnerDraw

由网友(感情 无法宣泄つPain)分享简介:我创建了一个自定义组合框与DrawMode = OwnerDrawVariable。一切都很好,但它不使用视觉样式不再在DropDownList的模式,即它看起来像旧的组合框。我怎样才能让使用视觉样式绘制它?我检查VisualStyleElement类,但没有发现有什么可以帮助我。I've created a cu...

我创建了一个自定义组合框与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.

阅读全文

相关推荐

最新文章