#if wxUSE_SCROLLBAR
+#include "wx/scrolbar.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/scrolbar.h"
#include "wx/msw/private.h"
-#include "wx/settings.h"
#if wxUSE_EXTENDED_RTTI
WX_DEFINE_FLAGS( wxScrollBarStyle )
if ( !::GetScrollInfo(GetHwnd(), SB_CTL, &scrollInfo) )
{
- wxLogLastError(_T("GetScrollInfo"));
+ wxLogLastError(wxT("GetScrollInfo"));
}
trackPos = scrollInfo.nTrackPos;
event.SetPosition(position);
event.SetEventObject( this );
- return GetEventHandler()->ProcessEvent(event);
+ return HandleWindowEvent(event);
}
void wxScrollBar::SetThumbPosition(int viewStart)
if ( !::GetScrollInfo(GetHwnd(), SB_CTL, &scrollInfo) )
{
- wxLogLastError(_T("GetScrollInfo"));
+ wxLogLastError(wxT("GetScrollInfo"));
}
return scrollInfo.nPos;
// return ::GetScrollPos((HWND)m_hWnd, SB_CTL);