From: Vadim Zeitlin Date: Thu, 1 Jul 2004 22:51:49 +0000 (+0000) Subject: call InheritAttributes() during creation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/45956e3776450527af201a3e254716daeb080109 call InheritAttributes() during creation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index ce75422271..93bb8f27c8 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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; } // ---------------------------------------------------------------------------