git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10774
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// global functions
// ----------------------------------------------------------------------------
// global functions
// ----------------------------------------------------------------------------
-WXDLLEXPORT extern wxWindow* wxGetActiveWindow();
-
// Find the wxWindow at the current mouse position, also returning the mouse
// position.
WXDLLEXPORT extern wxWindow* wxFindWindowAtPointer(wxPoint& pt);
// Find the wxWindow at the current mouse position, also returning the mouse
// position.
WXDLLEXPORT extern wxWindow* wxFindWindowAtPointer(wxPoint& pt);
-void wxAppBase::SetActive(bool active, wxWindow *lastFocus)
+void wxAppBase::SetActive(bool active, wxWindow * WXUNUSED(lastFocus))
- static wxWindow *s_lastFocus = (wxWindow *)NULL;
-
-
- // if we're being deactivated remember the last focused window
- if ( !active )
- {
- s_lastFocus = lastFocus;
- }
-
- if ( s_lastFocus )
- {
- // give the focused window the chance to refresh itself if its
- // appearance depends on the app activation state
- wxActivateEvent event(wxEVT_ACTIVATE, active);
- s_lastFocus->GetEventHandler()->ProcessEvent(event);
- }