// implementation
// ============================================================================
-IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
-
BEGIN_EVENT_TABLE(wxScrollBar, wxScrollBarBase)
END_EVENT_TABLE()
m_btnCapture = -1;
- if ( m_timerScroll )
- {
- delete m_timerScroll;
- m_timerScroll = NULL;
- }
+ wxDELETE(m_timerScroll);
// unpress the arrow and highlight the current element
Press(control, false);