}
si.fMask = SIF_DISABLENOSCROLL | SIF_PAGE | SIF_POS | SIF_RANGE;
si.nMin = 0;
- si.nMax = GetMaxLineLength () - 1;
+ // Cheat longer line
+ si.nMax = GetMaxLineLength () * 2 - 1;
si.nPage = GetScreenChars ();
si.nPos = m_nOffsetChar;
}
VERIFY (GetScrollInfo (SB_HORZ, &si));
int nPageChars = GetScreenChars ();
- int nMaxLineLength = GetMaxLineLength ();
+ // Cheat longer line
+ int nMaxLineLength = GetMaxLineLength () * 2;
int nNewOffset;
switch (nSBCode)
const int nScreenChars = GetScreenChars ();
if (nActualPos > nNewOffset + nScreenChars)
{
- nNewOffset = nActualPos - nScreenChars;
+ // Add 10 chars width space after line
+ nNewOffset = nActualPos - nScreenChars + 10;
}
if (nActualPos < nNewOffset)
{
}
const int nMaxLineLen = GetMaxLineLength ();
- if (nNewOffset >= nMaxLineLen)
- nNewOffset = nMaxLineLen - 1;
+ if (nNewOffset >= nMaxLineLen * 2)
+ nNewOffset = nMaxLineLen * 2 - 1;
if (nNewOffset < 0)
nNewOffset = 0;
+2003-04-23 Kimmo
+ PATCH: [ 721939 ] Wider horiz scroll + more space after last char
+ editlib: ccrystaltextview.cpp
+
2003-04-20 Perry
Changed dynamic array to be CArray based
editlib: ccrystaltextview.cpp