From ead8e70633213b69fa23c6d97a828a7c85178349 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 5 May 2006 23:27:53 +0000 Subject: Patch from Michael Durland so that constants have type to be more standard compliant and to protect IME code from Digital Mars compiler. --- win32/ScintillaWin.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 62641213e..db8bd5204 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -367,11 +367,11 @@ static int InputCodePage() { } #ifndef VK_OEM_2 -static const VK_OEM_2=0xbf; -static const VK_OEM_3=0xc0; -static const VK_OEM_4=0xdb; -static const VK_OEM_5=0xdc; -static const VK_OEM_6=0xdd; +static const int VK_OEM_2=0xbf; +static const int VK_OEM_3=0xc0; +static const int VK_OEM_4=0xdb; +static const int VK_OEM_5=0xdc; +static const int VK_OEM_6=0xdd; #endif /** Map the key codes to their equivalent SCK_ form. */ @@ -650,10 +650,13 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam return ::DefWindowProc(MainHWND(), iMessage, wParam, lParam); case WM_LBUTTONDOWN: { +#ifndef __DMC__ + // Digital Mars compiler does not include Imm library // For IME, set the composition string as the result string. HIMC hIMC = ::ImmGetContext(MainHWND()); ::ImmNotifyIME(hIMC, NI_COMPOSITIONSTR, CPS_COMPLETE, 0); ::ImmReleaseContext(MainHWND(), hIMC); +#endif // //Platform::DebugPrintf("Buttdown %d %x %x %x %x %x\n",iMessage, wParam, lParam, // Platform::IsKeyDown(VK_SHIFT), -- cgit v1.2.3