- // some versions of comctl32.dll 6.0 included with Windows XP don't
- // support non-top tabs (the control is simply not rendered correctly) but
- // we can't detect which ones, so be pessimistic by default and disable non
- // top tabs under XP but allow the user to override this by using a special
- // system option
- bool nonTopTabsOk = wxSystemOptions::GetOptionInt(_T("msw.xp-tab-ok")) != 0;
- if ( !nonTopTabsOk )
+ // comctl32.dll 6.0 doesn't support non-top tabs with visual styles (the
+ // control is simply not rendered correctly), so disable them in this case
+ const int verComCtl32 = wxApp::GetComCtl32Version();
+ if ( verComCtl32 == 600 )