diff options
author | nyamatongwe <unknown> | 2001-12-19 07:42:43 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-12-19 07:42:43 +0000 |
commit | d7724a86b84ee39fc398e7fe850a74335fdfceae (patch) | |
tree | 904d43717734397445b0320bb43a9b77d08f89dc /win32 | |
parent | bba11e9c77581bdfed94360e7b68c0025afcc545 (diff) | |
download | scintilla-mirror-d7724a86b84ee39fc398e7fe850a74335fdfceae.tar.gz |
Wrapping supported.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/ScintillaWin.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 8089fce92..37297e0bf 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -512,9 +512,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam case WM_SIZE: { //Platform::DebugPrintf("Scintilla WM_SIZE %d %d\n", LoWord(lParam), HiWord(lParam)); - PRectangle rsClient(0, 0, LoWord(lParam), HiWord(lParam)); - SetScrollBarsTo(rsClient); - DropGraphics(); + ChangeSize(); } break; @@ -864,8 +862,9 @@ bool ScintillaWin::ModifyScrollBars(int nMax, int nPage) { }; sci.fMask = SIF_PAGE | SIF_RANGE; ::GetScrollInfo(MainHWND(), SB_VERT, &sci); - if ((sci.nMin != 0) || (sci.nMax != pdoc->LinesTotal()) || - (sci.nPage != static_cast<unsigned int>(pdoc->LinesTotal() - MaxScrollPos() + 1)) || + if ((sci.nMin != 0) || + (sci.nMax != nMax) || + (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); @@ -881,7 +880,7 @@ bool ScintillaWin::ModifyScrollBars(int nMax, int nPage) { int horizStart = 0; int horizEnd = 2000; int horizEndPreferred = 2000; - if (!horizontalScrollBarVisible) + if (!horizontalScrollBarVisible || (wrapState != eWrapNone)) horizEndPreferred = 0; if (!::GetScrollRange(MainHWND(), SB_HORZ, &horizStart, &horizEnd) || horizStart != 0 || horizEnd != horizEndPreferred) { |