]> git.saurik.com Git - wxWidgets.git/commitdiff
Send window create events
authorRobin Dunn <robin@alldunn.com>
Fri, 16 Jan 2004 01:46:18 +0000 (01:46 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 16 Jan 2004 01:46:18 +0000 (01:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp
src/mac/carbon/window.cpp
src/mac/toplevel.cpp
src/mac/window.cpp

index 190bcd89465e2479cb5b0084f977f66dd1dad4be..490c26a56758cae148e086b975b2115fcd07d850 100644 (file)
@@ -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)
index 6a23f1cab358c63007f8e4174d27988ab0507b72..e75ae84a2ffaf045dc76e042e18e7b4ce539b51b 100644 (file)
@@ -218,6 +218,10 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id,
         MacCreateScrollBars( style ) ;
     }
 #endif
+
+    wxWindowCreateEvent event(this);
+    GetEventHandler()->ProcessEvent(event);
+
     return TRUE;
 }
 
index 190bcd89465e2479cb5b0084f977f66dd1dad4be..490c26a56758cae148e086b975b2115fcd07d850 100644 (file)
@@ -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)
index 6a23f1cab358c63007f8e4174d27988ab0507b72..e75ae84a2ffaf045dc76e042e18e7b4ce539b51b 100644 (file)
@@ -218,6 +218,10 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id,
         MacCreateScrollBars( style ) ;
     }
 #endif
+
+    wxWindowCreateEvent event(this);
+    GetEventHandler()->ProcessEvent(event);
+
     return TRUE;
 }