wxString, Name)
+// ----------------------------------------------------------------------------
+// wxWin macros
+// ----------------------------------------------------------------------------
+
+BEGIN_EVENT_TABLE(wxPanelBase, wxWindow)
+ WX_EVENT_TABLE_CONTROL_CONTAINER(wxPanelBase)
+END_EVENT_TABLE()
+
+// ============================================================================
+// implementation
+// ============================================================================
+
+WX_DELEGATE_TO_CONTROL_CONTAINER(wxPanelBase, wxWindow)
+
+// ----------------------------------------------------------------------------
+// wxPanelBase creation
+// ----------------------------------------------------------------------------
+
+wxPanelBase::wxPanelBase()
+{
+ WX_INIT_CONTROL_CONTAINER();
+}
+
+bool wxPanelBase::Create(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxString& name)
+{
+ if ( !wxWindow::Create(parent, id, pos, size, style, name) )
+ return false;
+
+ // so that non-solid background renders correctly under GTK+:
+ SetThemeEnabled(true);
+
+#if defined(__WXWINCE__) && (defined(__POCKETPC__) || defined(__SMARTPHONE__))
+ // Required to get solid control backgrounds under WinCE
+ SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
+#endif
+
+ return true;
+}
+
+void wxPanelBase::InitDialog()
+{
+ wxInitDialogEvent event(GetId());
+ event.SetEventObject(this);
+ GetEventHandler()->ProcessEvent(event);
+}