Removed hack in Toolbar that breaks UI updates under MSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -554,11 +554,15 @@ void wxToolBarBase::DoToolbarUpdates()
|
|||||||
while (parent->GetParent())
|
while (parent->GetParent())
|
||||||
parent = parent->GetParent();
|
parent = parent->GetParent();
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
// This kind of #ifdef is a good way to annoy people. It breaks
|
||||||
wxWindow* focusWin = wxFindFocusDescendant(parent);
|
// apps, but only on one platform and due to a hack in officially
|
||||||
#else
|
// platform independent code. It took me hours to fix this. RR.
|
||||||
|
//
|
||||||
|
// #ifdef __WXMSW__
|
||||||
|
// wxWindow* focusWin = wxFindFocusDescendant(parent);
|
||||||
|
// #else
|
||||||
wxWindow* focusWin = (wxWindow*) NULL;
|
wxWindow* focusWin = (wxWindow*) NULL;
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler() ;
|
wxEvtHandler* evtHandler = focusWin ? focusWin->GetEventHandler() : GetEventHandler() ;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user