]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/control.cpp
Use 0 instead of NULL to initialize wxUIntPtr.
[wxWidgets.git] / src / palmos / control.cpp
index 8fc1e73810a47c4474688d41a243356900aa182a..66dd535de7b2720861c1229ee20e74003f1fef92 100644 (file)
 
 #include <Control.h>
 #include <Form.h>
-#include <StatusBar.h>
+#ifdef __WXPALMOS6__
+    #include <StatusBar.h>
+#else
+    #include <PenInputMgr.h>
+#endif // __WXPALMOS6__
 
 // ----------------------------------------------------------------------------
 // wxWin macros
@@ -73,8 +77,9 @@ void wxControl::Init()
 
 wxControl::~wxControl()
 {
+    SendDestroyEvent();
+
     SetLabel(wxEmptyString);
-    m_isBeingDeleted = true;
 
     DestroyChildren();