GetSysColorBrush常量为选项卡控件的背景颜色?

时间:2015-08-23 02:13:40

标签: c++ c windows winapi common-controls

我正在使用以下API在tab control窗口的背景上绘制一个小股票图标(类名为SysTabControl32):

DrawIconEx(hDC, rcIcon.left, rcIcon.top,
    hIconSmInfo, rcIcon.Width(), rcIcon.Height(), NULL, 
    ::GetSysColorBrush(COLOR_WINDOW),
    DI_NORMAL);

但它似乎没有得出一致的背景。让我来表示。

在主题Windows 7上:

enter image description here

它正确绘制:

enter image description here

但如果我删除主题:

enter image description here

它绘制了这个白色背景:

enter image description here

那么我需要为GetSysColorBrush使用什么常量?

0 个答案:

没有答案
相关问题