diff options
author | nyamatongwe <devnull@localhost> | 2002-09-19 01:59:37 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-09-19 01:59:37 +0000 |
commit | 9fbcd821bdc59b82547fd62f2008297beadf7db8 (patch) | |
tree | caa852ee0c958f923a7f8057bbfc339ac1eac563 /win32 | |
parent | 99bf46093ed269c9ea3c6a69f82b079b01f5ac57 (diff) | |
download | scintilla-mirror-9fbcd821bdc59b82547fd62f2008297beadf7db8.tar.gz |
Added mthod to turn off vertical scroll bar.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/ScintillaWin.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 34e2f2e7a..c1930cbe8 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -902,15 +902,18 @@ bool ScintillaWin::ModifyScrollBars(int nMax, int nPage) { }; sci.fMask = SIF_PAGE | SIF_RANGE; ::GetScrollInfo(MainHWND(), SB_VERT, &sci); + int vertEndPreferred = nMax; + if (!verticalScrollBarVisible) + vertEndPreferred = 0; if ((sci.nMin != 0) || - (sci.nMax != nMax) || + (sci.nMax != vertEndPreferred) || (sci.nPage != static_cast<unsigned int>(nPage)) || (sci.nPos != 0)) { //Platform::DebugPrintf("Scroll info changed %d %d %d %d %d\n", // sci.nMin, sci.nMax, sci.nPage, sci.nPos, sci.nTrackPos); sci.fMask = SIF_PAGE | SIF_RANGE; sci.nMin = 0; - sci.nMax = nMax; + sci.nMax = vertEndPreferred; sci.nPage = nPage; sci.nPos = 0; sci.nTrackPos = 1; |