diff options
author | nyamatongwe <unknown> | 2000-07-21 13:36:30 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-07-21 13:36:30 +0000 |
commit | 642a1a3531a028121777286b878541e014feac56 (patch) | |
tree | 0b021201d15fe67ec159dd2877995ef6b5019927 /src/WindowAccessor.cxx | |
parent | 7dee13ea06c319bb9042b6964fd6fd3670dcb482 (diff) | |
download | scintilla-mirror-642a1a3531a028121777286b878541e014feac56.tar.gz |
Provide alternative symbols for all features defined in WinDefs.h to allow
for eventual removal of WinDefs.h.
Diffstat (limited to 'src/WindowAccessor.cxx')
-rw-r--r-- | src/WindowAccessor.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx index b16735658..96581ef59 100644 --- a/src/WindowAccessor.cxx +++ b/src/WindowAccessor.cxx @@ -36,7 +36,7 @@ bool WindowAccessor::InternalIsLeadByte(char ch) { void WindowAccessor::Fill(int position) { if (lenDoc == -1) - lenDoc = Platform::SendScintilla(id, WM_GETTEXTLENGTH, 0, 0); + lenDoc = Platform::SendScintilla(id, SCI_GETTEXTLENGTH, 0, 0); startPos = position - slopSize; if (startPos + bufferSize > lenDoc) startPos = lenDoc - bufferSize; @@ -46,8 +46,8 @@ void WindowAccessor::Fill(int position) { if (endPos > lenDoc) endPos = lenDoc; - TEXTRANGE tr = {{startPos, endPos}, buf}; - Platform::SendScintilla(id, EM_GETTEXTRANGE, 0, reinterpret_cast<LPARAM>(&tr)); + TextRange tr = {{startPos, endPos}, buf}; + Platform::SendScintilla(id, SCI_GETTEXTRANGE, 0, reinterpret_cast<long>(&tr)); } char WindowAccessor::StyleAt(int position) { @@ -56,11 +56,11 @@ char WindowAccessor::StyleAt(int position) { } int WindowAccessor::GetLine(int position) { - return Platform::SendScintilla(id, EM_LINEFROMCHAR, position, 0); + return Platform::SendScintilla(id, SCI_LINEFROMPOSITION, position, 0); } int WindowAccessor::LineStart(int line) { - return Platform::SendScintilla(id, EM_LINEINDEX, line, 0); + return Platform::SendScintilla(id, SCI_POSITIONFROMLINE, line, 0); } int WindowAccessor::LevelAt(int line) { @@ -69,7 +69,7 @@ int WindowAccessor::LevelAt(int line) { int WindowAccessor::Length() { if (lenDoc == -1) - lenDoc = Platform::SendScintilla(id, WM_GETTEXTLENGTH, 0, 0); + lenDoc = Platform::SendScintilla(id, SCI_GETTEXTLENGTH, 0, 0); return lenDoc; } @@ -122,7 +122,7 @@ void WindowAccessor::Flush() { lenDoc = -1; if (validLen > 0) { Platform::SendScintilla(id, SCI_SETSTYLINGEX, validLen, - reinterpret_cast<LPARAM>(styleBuf)); + reinterpret_cast<long>(styleBuf)); validLen = 0; } } |