]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/statbrpalm.cpp
generate mouse events for all static controls, not just wxStaticLine (patch 1276413...
[wxWidgets.git] / src / palmos / statbrpalm.cpp
index ba68ff9a26ea2242db566baaebac71f76c864e92..c1b71e42c104edd59b04052f0e25a228b2e6686b 100644 (file)
@@ -33,6 +33,8 @@
 #include "wx/log.h"
 #include "wx/statusbr.h"
 
+#include <StatusBar.h>
+
 // ----------------------------------------------------------------------------
 // macros
 // ----------------------------------------------------------------------------
@@ -48,8 +50,6 @@
 wxStatusBarPalm::wxStatusBarPalm()
 {
     SetParent(NULL);
-    m_hWnd = 0;
-    m_windowId = 0;
 }
 
 bool wxStatusBarPalm::Create(wxWindow *parent,
@@ -63,13 +63,11 @@ bool wxStatusBarPalm::Create(wxWindow *parent,
 
     SetName(name);
     SetParent(parent);
+    SetId( id == wxID_ANY ? NewControlId() : id );
 
     parent->AddChild(this);
 
-    m_windowId = id == wxID_ANY ? NewControlId() : id;
-
     SetFieldsCount(1);
-    SubclassWin(m_hWnd);
 
     return true;
 }