src/windows/native/sun/windows/awt_TextField.cpp

Print this page

        

*** 198,208 **** --- 198,211 ---- SCROLLINFO si; memset(&si, 0, sizeof(si)); si.cbSize = sizeof(si); si.fMask = SIF_PAGE | SIF_POS | SIF_RANGE; + SendMessage(EM_SHOWSCROLLBAR, SB_HORZ, TRUE); VERIFY(::GetScrollInfo(GetHWnd(), SB_HORZ, &si)); + SendMessage(EM_SHOWSCROLLBAR, SB_HORZ, FALSE); + if (bScrollLeft == TRUE) { si.nPos = si.nPos - si.nPage / 2; si.nPos = max(si.nMin, si.nPos); } else if (bScrollRight == TRUE) { si.nPos = si.nPos + si.nPage / 2;