- wxSize newSize(event->data.winResized.newBounds.extent.x,
- event->data.winResized.newBounds.extent.y);
+ const EventType *palmEvent = (EventType *)event;
+ wxSize newSize(palmEvent->data.winResized.newBounds.extent.x,
+ palmEvent->data.winResized.newBounds.extent.y);