- return m_overlayContext != NULL ;
-}
-
-pascal OSStatus wxOverlayImpl::OverlayWindowEventHandlerProc( EventHandlerCallRef WXUNUSED(inCallRef), EventRef inEvent, void* inUserData )
-{
- OSStatus err = noErr ;
- wxOverlayImpl* self = (wxOverlayImpl*) inUserData;
-
- wxMacCarbonEvent cEvent(inEvent) ;
- switch( cEvent.GetClass() )
- {
- case kEventClassWindow:
- switch( cEvent.GetKind() )
- {
- case kEventWindowBoundsChanged:
- break;
- default :
- break;
- }
- break ;
- default :
- break ;
- }
- // as we didn't interfere with the event itself, always return a notHandled
- return eventNotHandledErr ;
-}
-
-pascal OSStatus wxOverlayImpl::OverlayParentWindowEventHandlerProc( EventHandlerCallRef inCallRef, EventRef inEvent, void* inUserData )
-{
- OSStatus err = eventNotHandledErr ;
- wxOverlayImpl* self = (wxOverlayImpl*) inUserData;
-
- wxMacCarbonEvent cEvent(inEvent) ;
- switch( cEvent.GetClass() )
- {
- case kEventClassWindow:
- switch( cEvent.GetKind() )
- {
- case kEventWindowBoundsChanging:
- case kEventWindowBoundsChanged:
- {
- err = CallNextEventHandler(inCallRef,inEvent);
- Rect bounds ;
- self->MacGetBounds(&bounds);
- SetWindowBounds(self->m_overlayWindow,kWindowContentRgn,&bounds);
- }
- break;
- default :
- break;
- }
- break ;
- default :
- break ;
- }
- return err ;