Applied patch [ 1382329 ] [msw] SetScrollbar: Set thumbsize before triggering events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -938,11 +938,13 @@ void wxWindowMSW::SetScrollbar(int orient,
|
|||||||
HWND hWnd = GetHwnd();
|
HWND hWnd = GetHwnd();
|
||||||
if ( hWnd )
|
if ( hWnd )
|
||||||
{
|
{
|
||||||
|
// We have to set the variables here to make them valid in events
|
||||||
|
// triggered by ::SetScrollInfo()
|
||||||
|
*(orient == wxHORIZONTAL ? &m_xThumbSize : &m_yThumbSize) = pageSize;
|
||||||
|
|
||||||
::SetScrollInfo(hWnd, orient == wxHORIZONTAL ? SB_HORZ : SB_VERT,
|
::SetScrollInfo(hWnd, orient == wxHORIZONTAL ? SB_HORZ : SB_VERT,
|
||||||
&info, refresh);
|
&info, refresh);
|
||||||
}
|
}
|
||||||
|
|
||||||
*(orient == wxHORIZONTAL ? &m_xThumbSize : &m_yThumbSize) = pageSize;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowMSW::ScrollWindow(int dx, int dy, const wxRect *prect)
|
void wxWindowMSW::ScrollWindow(int dx, int dy, const wxRect *prect)
|
||||||
|
Reference in New Issue
Block a user