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; }