call InheritAttributes() during creation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-07-01 22:51:49 +00:00
parent fb12998e98
commit 45956e3776

View File

@ -528,7 +528,12 @@ bool wxWindowMSW::Create(wxWindow *parent,
msflags |= WS_VISIBLE;
}
return MSWCreate(wxCanvasClassName, NULL, pos, size, msflags, exstyle);
if ( !MSWCreate(wxCanvasClassName, NULL, pos, size, msflags, exstyle) )
return false;
InheritAttributes();
return true;
}
// ---------------------------------------------------------------------------