Allow app to call SetWindowVariant before creation of control

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-04-02 15:57:31 +00:00
parent bb253bfd67
commit 2317613101

View File

@ -650,9 +650,14 @@ void wxWindowMac::MacPostControlCreate(const wxPoint& pos, const wxSize& size)
void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
{
wxASSERT( m_macControl != NULL ) ;
// Don't assert, in case we set the window variant before
// the window is created
// wxASSERT( m_macControl != NULL ) ;
m_windowVariant = variant ;
m_windowVariant = variant ;
if (!m_macControl)
return;
ControlSize size ;
ThemeFontID themeFont = kThemeSystemFont ;