]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/scrolbar.cpp
Create a text measuring context until a real context is assigned, this allows things...
[wxWidgets.git] / src / msw / scrolbar.cpp
index d892916568a3b49d231859ed6de19114d05e35b3..c9830b7754c2e353b8f8e01211ac47d84a76bcd4 100644 (file)
@@ -131,7 +131,7 @@ bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
 
         if ( !::GetScrollInfo(GetHwnd(), SB_CTL, &scrollInfo) )
         {
-            wxLogLastError(_T("GetScrollInfo"));
+            wxLogLastError(wxT("GetScrollInfo"));
         }
 
         trackPos = scrollInfo.nTrackPos;
@@ -231,7 +231,7 @@ bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
     event.SetPosition(position);
     event.SetEventObject( this );
 
-    return GetEventHandler()->ProcessEvent(event);
+    return HandleWindowEvent(event);
 }
 
 void wxScrollBar::SetThumbPosition(int viewStart)
@@ -255,7 +255,7 @@ int wxScrollBar::GetThumbPosition(void) const
 
     if ( !::GetScrollInfo(GetHwnd(), SB_CTL, &scrollInfo) )
     {
-        wxLogLastError(_T("GetScrollInfo"));
+        wxLogLastError(wxT("GetScrollInfo"));
     }
     return scrollInfo.nPos;
 //    return ::GetScrollPos((HWND)m_hWnd, SB_CTL);