bool success = wxWindow::Create(parent, id, pos, dummySize, style, name);
if (success)
{
- this->MacCreateRealWindow(title, pos, size, style, name);
+ this->MacCreateRealWindow(pos, size, style, name);
success = (m_macWindow != NULL);
}
if (success)
{
// Use drawer brush.
- m_macBackgroundBrush.MacSetTheme(kThemeBrushDrawerBackground);
- ::SetThemeWindowBackground((WindowRef)m_macWindow,
- m_macBackgroundBrush.MacGetTheme(), false);
+ SetBackgroundColour( wxColour( wxMacCreateCGColorFromHITheme( kThemeBrushDrawerBackground ) ) );
+ ::SetThemeWindowBackground((WindowRef)m_macWindow, kThemeBrushDrawerBackground, false);
// Leading and trailing offset are gaps from parent window edges
// to where the drawer starts.