From 3dfafdb9e6c344ff17e9ec62e1711c9640a48036 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 16 Jan 2004 01:46:18 +0000 Subject: [PATCH] Send window create events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 3 +++ src/mac/carbon/window.cpp | 4 ++++ src/mac/toplevel.cpp | 3 +++ src/mac/window.cpp | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 190bcd8946..490c26a567 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -764,6 +764,9 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, SetShape(rgn); } #endif + + wxWindowCreateEvent event(this); + GetEventHandler()->ProcessEvent(event); } void wxTopLevelWindowMac::MacGetPortParams(WXPOINTPTR localOrigin, WXRECTPTR clipRect, WXHWND *window , wxWindowMac** rootwin) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 6a23f1cab3..e75ae84a2f 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -218,6 +218,10 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id, MacCreateScrollBars( style ) ; } #endif + + wxWindowCreateEvent event(this); + GetEventHandler()->ProcessEvent(event); + return TRUE; } diff --git a/src/mac/toplevel.cpp b/src/mac/toplevel.cpp index 190bcd8946..490c26a567 100644 --- a/src/mac/toplevel.cpp +++ b/src/mac/toplevel.cpp @@ -764,6 +764,9 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, SetShape(rgn); } #endif + + wxWindowCreateEvent event(this); + GetEventHandler()->ProcessEvent(event); } void wxTopLevelWindowMac::MacGetPortParams(WXPOINTPTR localOrigin, WXRECTPTR clipRect, WXHWND *window , wxWindowMac** rootwin) diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 6a23f1cab3..e75ae84a2f 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -218,6 +218,10 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id, MacCreateScrollBars( style ) ; } #endif + + wxWindowCreateEvent event(this); + GetEventHandler()->ProcessEvent(event); + return TRUE; } -- 2.47.2