X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/674ac8b919eecbc201b5f23b470a567cd0565e10..f1d93f0beeec9d88f8a225aa35a9ccc163dcdb15:/src/generic/tbarsmpl.cpp?ds=sidebyside diff --git a/src/generic/tbarsmpl.cpp b/src/generic/tbarsmpl.cpp index 88f45ba452..53f382c402 100644 --- a/src/generic/tbarsmpl.cpp +++ b/src/generic/tbarsmpl.cpp @@ -83,7 +83,7 @@ public: // wxWin macros // ---------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxControl) +IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxToolBarBase) BEGIN_EVENT_TABLE(wxToolBarSimple, wxToolBarBase) EVT_SIZE(wxToolBarSimple::OnSize) @@ -143,6 +143,17 @@ void wxToolBarSimple::Init() m_defaultWidth = 16; m_defaultHeight = 15; + + m_xScrollPixelsPerLine = 1; + m_yScrollPixelsPerLine = 1; + m_xScrollingEnabled = FALSE; + m_yScrollingEnabled = FALSE; + m_xScrollPosition = 0; + m_yScrollPosition = 0; + m_xScrollLines = 0; + m_yScrollLines = 0; + m_xScrollLinesPerPage = 0; + m_yScrollLinesPerPage = 0; } wxToolBarToolBase *wxToolBarSimple::AddTool(int id,