]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/window.cpp
Copied gsockgtk.c revision 1.16
[wxWidgets.git] / src / mac / carbon / window.cpp
index fbe96110d233a5c7f12fa0d02ff159c15d3fecdc..e75ae84a2ffaf045dc76e042e18e7b4ce539b51b 100644 (file)
@@ -100,10 +100,6 @@ END_EVENT_TABLE()
 
 void wxWindowMac::Init()
 {
-    // generic
-    InitBase();
-
-    m_isBeingDeleted = FALSE;
     m_backgroundTransparent = FALSE;
 
     // as all windows are created with WS_VISIBLE style...
@@ -116,8 +112,6 @@ void wxWindowMac::Init()
 
     m_hScrollBar = NULL ;
     m_vScrollBar = NULL ;
-
-    m_label = wxEmptyString;
 }
 
 // Destructor
@@ -224,6 +218,10 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id,
         MacCreateScrollBars( style ) ;
     }
 #endif
+
+    wxWindowCreateEvent event(this);
+    GetEventHandler()->ProcessEvent(event);
+
     return TRUE;
 }