@Override
void draw(Theme theme, GC gc, Rectangle bounds) {
if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
int hTheme = OS.OpenThemeData(0, getClassId());
RECT rect = new RECT ();
rect.left = bounds.x;
rect.right = bounds.x + bounds.width;
rect.top = bounds.y;
if ((style & SWT.BOTTOM) != 0) {
rect.bottom = bounds.y + bounds.height - tabsHeight;
} else {
rect.top += tabsHeight;
rect.bottom = bounds.y + bounds.height;
}
int[] part = getPartId(DrawData.WIDGET_WHOLE);
OS.DrawThemeBackground (hTheme, gc.handle, part[0], part[1], rect, null);
OS.CloseThemeData(hTheme);
if (tabsArea != null) {
tabsArea.x = bounds.x;
tabsArea.y = bounds.y;
tabsArea.width = bounds.width;
tabsArea.height = tabsHeight;
if ((style & SWT.BOTTOM) != 0) {
tabsArea.y += bounds.height - tabsHeight;
}
}
}
}