From c2f15028c0f81693e2f71eb60d813219c76d9e67 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 30 Mar 2003 00:50:50 +0000 Subject: Make IDC_HAND visible with old build environments. Avoid calling ::IsChild when wParam 0 to avoid BoundsChecker warning. --- win32/PlatWin.cxx | 4 ++++ win32/ScintillaWin.cxx | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 2d51b4023..ffa9b81ef 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -23,6 +23,10 @@ #include "UniConversion.h" #include "XPM.h" +#ifndef IDC_HAND +#define IDC_HAND MAKEINTRESOURCE(32649) +#endif + // Take care of 32/64 bit pointers #ifdef GetWindowLongPtr static void *PointerFromWindow(HWND hWnd) { diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index c8a47c11b..9307373e3 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -669,7 +669,8 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam return DLGC_HASSETSEL | DLGC_WANTALLKEYS; case WM_KILLFOCUS: - if (!IsChild(reinterpret_cast(wMain.GetID()), + if (!wParam || + !::IsChild(reinterpret_cast(wMain.GetID()), reinterpret_cast(wParam))) { SetFocusState(false); } -- cgit v1.2.3