void wxTopLevelWindowMac::MacActivate( long timestamp , bool inIsActivating ) { // wxLogDebug(wxT("TopLevel=%p::MacActivate"),this); if(s_macDeactivateWindow==this) s_macDeactivateWindow=NULL; MacDelayedDeactivation(timestamp); wxActivateEvent event(wxEVT_ACTIVATE, inIsActivating , m_windowId); event.SetTimestamp(timestamp); event.SetEventObject(this); GetEventHandler()->ProcessEvent(event); UMAHighlightAndActivateWindow( (WindowRef)m_macWindow , inIsActivating ) ; // Early versions of MacOS X don't refresh backgrounds properly, // so refresh the whole window on activation and deactivation. long osVersion = UMAGetSystemVersion(); if (osVersion >= 0x1000 && osVersion < 0x1020 ) { Refresh(TRUE); } else { // for the moment we have to resolve some redrawing issues like this // the OS is stealing some redrawing areas as soon as it draws a control Refresh(TRUE); } }
void wxNonOwnedWindow::MacActivate( long timestamp , bool WXUNUSED(inIsActivating) ) { wxLogTrace(TRACE_ACTIVATE, wxT("TopLevel=%p::MacActivate"), this); if (s_macDeactivateWindow == this) s_macDeactivateWindow = NULL; MacDelayedDeactivation(timestamp); }