Added a comment about the 'UpdateWindow' issue in SetScrollBars()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -154,9 +154,15 @@ void wxScrolledWindow::SetScrollbars (int pixelsPerUnitX, int pixelsPerUnitY,
|
|||||||
AdjustScrollbars();
|
AdjustScrollbars();
|
||||||
|
|
||||||
if (do_refresh && !noRefresh)
|
if (do_refresh && !noRefresh)
|
||||||
m_targetWindow->Refresh();
|
m_targetWindow->Refresh();
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
|
// GRG: if this turns out to be really necessary, we could
|
||||||
|
// at least move it to the above if { ... } so that it is
|
||||||
|
// only done if noRefresh = FALSE (the default). OTOH, if
|
||||||
|
// this doesn't break anything, which seems to be the
|
||||||
|
// case, we could just leave it out.
|
||||||
|
|
||||||
// Necessary?
|
// Necessary?
|
||||||
// UpdateWindow ((HWND) m_targetWindow->GetHWND());
|
// UpdateWindow ((HWND) m_targetWindow->GetHWND());
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user