Ensure PostCreation is always called, so the widget will be shown properly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-04-14 05:19:41 +00:00
parent 9357a69fb6
commit ec8c39ed09
2 changed files with 2 additions and 10 deletions

View File

@@ -84,16 +84,12 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi
else
{
m_widget = gtk_label_new( "Bitmap" );
m_focusWidget = m_widget;
PostCreation();
}
PostCreation();
m_parent->DoAddChild( this );
Show( TRUE );
return TRUE;
}

View File

@@ -84,16 +84,12 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi
else
{
m_widget = gtk_label_new( "Bitmap" );
m_focusWidget = m_widget;
PostCreation();
}
PostCreation();
m_parent->DoAddChild( this );
Show( TRUE );
return TRUE;
}