generate wxEVT_ACTIVATE_APP events for wxMSW too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-08-24 16:12:40 +00:00
parent 00b4a13e0c
commit 66dfed9b9d
3 changed files with 8 additions and 10 deletions

View File

@ -141,7 +141,15 @@ void wxAppBase::ProcessPendingEvents()
void wxAppBase::SetActive(bool active, wxWindow * WXUNUSED(lastFocus))
{
if ( active == m_isActive )
return;
m_isActive = active;
wxActivateEvent event(wxEVT_ACTIVATE_APP, active);
event.SetEventObject(this);
(void)ProcessEvent(event);
}
#endif // wxUSE_GUI

View File

@ -2786,11 +2786,6 @@ void wxWindowGTK::OnInternalIdle()
g_sendActivateEvent = -1;
wxTheApp->SetActive(activate, (wxWindow *)g_focusWindowLast);
wxActivateEvent event(wxEVT_ACTIVATE_APP, activate, GetId());
event.SetEventObject(this);
(void)GetEventHandler()->ProcessEvent(event);
}
wxCursor cursor = m_cursor;

View File

@ -2786,11 +2786,6 @@ void wxWindowGTK::OnInternalIdle()
g_sendActivateEvent = -1;
wxTheApp->SetActive(activate, (wxWindow *)g_focusWindowLast);
wxActivateEvent event(wxEVT_ACTIVATE_APP, activate, GetId());
event.SetEventObject(this);
(void)GetEventHandler()->ProcessEvent(event);
}
wxCursor cursor = m_cursor;