From 45956e3776450527af201a3e254716daeb080109 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 1 Jul 2004 22:51:49 +0000 Subject: [PATCH] call InheritAttributes() during creation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } // --------------------------------------------------------------------------- -- 2.50.0