]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/button.cpp
added test of box sizer proportions
[wxWidgets.git] / src / palmos / button.cpp
index 262972367ce46117ddac17d9207f67ab3486562d..254a83750ab84821747935ceccf1b668f42b740f 100644 (file)
@@ -44,6 +44,9 @@
 
 #include "wx/stockitem.h"
 
+#include <Control.h>
+#include <Form.h>
+
 // ----------------------------------------------------------------------------
 // macros
 // ----------------------------------------------------------------------------
@@ -198,7 +201,7 @@ wxSize wxButtonBase::GetDefaultSize()
 
 void wxButton::SetDefault()
 {
-    FormType* form = GetParentForm();
+    FormType* form = (FormType* )GetParentForm();
     if(form==NULL)
         return;
     FrmSetDefaultButtonID(form,GetId());