Headers cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -267,15 +267,15 @@ void wxTopLevelWindowPalm::OnActivate(wxActivateEvent& event)
|
||||
/* Palm OS Event handler for the window
|
||||
*
|
||||
* This function *must* be located outside of the wxTopLevelWindow class because
|
||||
* the Palm OS API expects a standalone C function as a callback. You cannot
|
||||
* pass a pointer to a member function of a C++ class as a callback because the
|
||||
* prototypes don't match. (A member function has a hidden "this" pointer as
|
||||
* the Palm OS API expects a standalone C function as a callback. You cannot
|
||||
* pass a pointer to a member function of a C++ class as a callback because the
|
||||
* prototypes don't match. (A member function has a hidden "this" pointer as
|
||||
* its first parameter).
|
||||
*
|
||||
* This event handler uses a global pointer to the current wxFrame to process
|
||||
* the events generated by the Palm OS form API. I know this is ugly, but right
|
||||
* now I can't think of any other way to deal with this problem. If someone
|
||||
* finds a better solution, please let me know. My email address is
|
||||
*
|
||||
* This event handler uses a global pointer to the current wxFrame to process
|
||||
* the events generated by the Palm OS form API. I know this is ugly, but right
|
||||
* now I can't think of any other way to deal with this problem. If someone
|
||||
* finds a better solution, please let me know. My email address is
|
||||
* wbo@freeshell.org
|
||||
*/
|
||||
static Boolean FrameFormHandleEvent(EventType* pEvent)
|
||||
@@ -284,14 +284,14 @@ static Boolean FrameFormHandleEvent(EventType* pEvent)
|
||||
FormType* pForm;
|
||||
WinHandle hWindow;
|
||||
int ItemID=0;
|
||||
|
||||
|
||||
switch (pEvent->eType) {
|
||||
case ctlSelectEvent:
|
||||
break;
|
||||
#if wxUSE_MENUS_NATIVE
|
||||
case menuOpenEvent:
|
||||
fHandled=ActiveParentFrame->HandleMenuOpen();
|
||||
break;
|
||||
break;
|
||||
case menuEvent:
|
||||
ItemID=pEvent->data.menu.itemID;
|
||||
fHandled=ActiveParentFrame->HandleMenuSelect(ItemID);
|
||||
@@ -300,6 +300,6 @@ static Boolean FrameFormHandleEvent(EventType* pEvent)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
return fHandled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user