diff options
Diffstat (limited to 'scintilla/win32/ScintillaWin.cxx')
-rw-r--r-- | scintilla/win32/ScintillaWin.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scintilla/win32/ScintillaWin.cxx b/scintilla/win32/ScintillaWin.cxx index 56ef1e3..38b576e 100644 --- a/scintilla/win32/ScintillaWin.cxx +++ b/scintilla/win32/ScintillaWin.cxx @@ -52,6 +52,7 @@ #ifdef SCI_LEXER
#include "LexerModule.h"
#endif
+#include "Position.h"
#include "SplitVector.h"
#include "Partitioning.h"
#include "RunStyles.h"
@@ -235,10 +236,10 @@ class ScintillaWin : static sptr_t DirectFunction(
sptr_t ptr, UINT iMessage, uptr_t wParam, sptr_t lParam);
- static sptr_t PASCAL SWndProc(
- HWND hWnd, UINT iMessage, WPARAM wParam, sptr_t lParam);
- static sptr_t PASCAL CTWndProc(
- HWND hWnd, UINT iMessage, WPARAM wParam, sptr_t lParam);
+ static LRESULT PASCAL SWndProc(
+ HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam);
+ static LRESULT PASCAL CTWndProc(
+ HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam);
enum { invalidTimerID, standardTimerID, idleTimerID, fineTimerStart };
@@ -704,7 +705,7 @@ int ScintillaWin::EncodedFromUTF8(char *utf8, char *encoded) const { }
}
-LRESULT ScintillaWin::WndPaint(uptr_t wParam) {
+sptr_t ScintillaWin::WndPaint(uptr_t wParam) {
//ElapsedTime et;
// Redirect assertions to debug output and save current state
@@ -1067,6 +1068,7 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) { i += ucWidth;
}
}
+ EnsureCaretVisible();
SetCandidateWindowPos();
ShowCaretAtCurrentPosition();
::ImmReleaseContext(MainHWND(), hIMC);
@@ -3128,8 +3130,8 @@ BOOL ScintillaWin::DestroySystemCaret() { return retval;
}
-sptr_t PASCAL ScintillaWin::CTWndProc(
- HWND hWnd, UINT iMessage, WPARAM wParam, sptr_t lParam) {
+LRESULT PASCAL ScintillaWin::CTWndProc(
+ HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) {
// Find C++ object associated with window.
ScintillaWin *sciThis = reinterpret_cast<ScintillaWin *>(PointerFromWindow(hWnd));
try {
@@ -3246,8 +3248,8 @@ sptr_t __stdcall Scintilla_DirectFunction( return sci->WndProc(iMessage, wParam, lParam);
}
-sptr_t PASCAL ScintillaWin::SWndProc(
- HWND hWnd, UINT iMessage, WPARAM wParam, sptr_t lParam) {
+LRESULT PASCAL ScintillaWin::SWndProc(
+ HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) {
//Platform::DebugPrintf("S W:%x M:%x WP:%x L:%x\n", hWnd, iMessage, wParam, lParam);
// Find C++ object associated with window.
|