]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't send the wxWindowCreateEvent immediately
authorRobin Dunn <robin@alldunn.com>
Thu, 5 Feb 2004 00:25:36 +0000 (00:25 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 5 Feb 2004 00:25:36 +0000 (00:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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

index 8357a177d21b126138777edbbc4233daaccc64f4..d462f005b93660369cc84f974e91d7c7ccb08f17 100644 (file)
@@ -220,7 +220,7 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id,
 #endif
 
     wxWindowCreateEvent event(this);
-    GetEventHandler()->ProcessEvent(event);
+    GetEventHandler()->AddPendingEvent(event);
 
     return TRUE;
 }
index 8357a177d21b126138777edbbc4233daaccc64f4..d462f005b93660369cc84f974e91d7c7ccb08f17 100644 (file)
@@ -220,7 +220,7 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id,
 #endif
 
     wxWindowCreateEvent event(this);
-    GetEventHandler()->ProcessEvent(event);
+    GetEventHandler()->AddPendingEvent(event);
 
     return TRUE;
 }