X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/324eeecb3cdc9522e136af6670443148772b412a..0d90d6ea7a007332aa75779f90b30ed39872e494:/src/palmos/frame.cpp?ds=sidebyside diff --git a/src/palmos/frame.cpp b/src/palmos/frame.cpp index 3704c42d46..631d1ae7d5 100644 --- a/src/palmos/frame.cpp +++ b/src/palmos/frame.cpp @@ -57,6 +57,9 @@ #include "wx/univ/colschem.h" #endif // __WXUNIVERSAL__ +#include +#include + // ---------------------------------------------------------------------------- // globals // ---------------------------------------------------------------------------- @@ -211,15 +214,16 @@ bool wxFrame::HandleMenuOpen() return true; } -bool wxFrame::HandleMenuSelect(EventType* event) +bool wxFrame::HandleMenuSelect(WXEVENTPTR event) { - int ItemID = event->data.menu.itemID; + const EventType *palmEvent = (EventType *)event; + const int ItemID = palmEvent->data.menu.itemID; if (!m_frameMenuBar) return false; - int item=m_frameMenuBar->ProcessCommand(ItemID); - if(item==-1) + const int item = m_frameMenuBar->ProcessCommand(ItemID); + if (item==-1) return false; wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, item); @@ -289,7 +293,7 @@ wxPoint wxFrame::GetClientAreaOrigin() const Y = 0; while ( Y < maxY ) { - if(!FrmPointInTitle(GetForm(),X,Y)) + if(!FrmPointInTitle((FormType*)GetForm(),X,Y)) return wxPoint(X,Y+1); Y++; }