]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
use wxStockCursor (as documented and as already implemented in wxMotif) instead of...
[wxWidgets.git] / src / generic / panelg.cpp
index 454f5dc1d86537e33914c0f7276ba0cbcf9097f5..d714bce3c08935bc3602c6f9453b590ea8e3adb7 100644 (file)
     #include "wx/settings.h"
     #include "wx/log.h"
     #include "wx/panel.h"
+    #include "wx/containr.h"
 #endif
 
-#include "wx/containr.h"
-
 // ----------------------------------------------------------------------------
 // wxWin macros
 // ----------------------------------------------------------------------------
@@ -98,7 +97,7 @@ END_EVENT_TABLE()
 // implementation
 // ============================================================================
 
-WX_DELEGATE_TO_CONTROL_CONTAINER(wxPanel)
+WX_DELEGATE_TO_CONTROL_CONTAINER(wxPanel, wxWindow)
 
 // ----------------------------------------------------------------------------
 // wxPanel creation
@@ -106,7 +105,7 @@ WX_DELEGATE_TO_CONTROL_CONTAINER(wxPanel)
 
 void wxPanel::Init()
 {
-    m_container.SetContainerWindow(this);
+    WX_INIT_CONTROL_CONTAINER();
 }
 
 bool wxPanel::Create(wxWindow *parent, wxWindowID id,