X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2d49353d4ac77775d5c513e55940175458faa1c..6d50049a5c4a04f10df683482b51e10c2d65ef84:/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp diff --git a/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp b/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp index 045d6d33b9..cfc5fba0b9 100644 --- a/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp +++ b/contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: dynsash_switch.cpp +// Name: contrib/samples/gizmos/dynsash_switch/dynsash_switch.cpp // Purpose: Test custom scrollbar handling of wxDynamicSashWindow by // creating a dynamic sash window where the client scrolls a // a subwindow of the client window by responding to scroll @@ -25,13 +25,13 @@ #include "wx/wx.h" #endif -#include -#include -#include -#include -#include -#include -#include +#include "wx/app.h" +#include "wx/frame.h" +#include "wx/choice.h" +#include "wx/dcclient.h" +#include "wx/gizmos/dynamicsash.h" +#include "wx/layout.h" +#include "wx/scrolbar.h" class SwitchDemo : public wxApp { public: @@ -239,7 +239,7 @@ void SwitchView::OnFocus(wxFocusEvent& event) { wxScrollBar *hscroll = m_dyn_sash->GetHScrollBar(this); wxScrollBar *vscroll = m_dyn_sash->GetVScrollBar(this); - if (event.m_eventObject == hscroll || event.m_eventObject == vscroll) { + if (event.GetEventObject() == hscroll || event.GetEventObject() == vscroll) { m_view->SetFocus(); } else { event.Skip();