[ui] fix cursor being displayed within Info field

* Also fix an MSVC code analysis warning in iso.c
* Closes #527
This commit is contained in:
Pete Batard 2015-06-17 18:32:19 +01:00
parent 00947eb865
commit 7567ddef07
3 changed files with 13 additions and 10 deletions

View file

@ -1552,13 +1552,16 @@ static INT_PTR CALLBACK InfoCallback(HWND hCtrl, UINT message, WPARAM wParam, LP
PAINTSTRUCT ps;
wchar_t winfo[128];
// Prevent the cursor (caret) from appearing within the edit control
HideCaret(hCtrl);
switch (message) {
// Prevent select (which screws up our display as it redraws the font using different settings)
case WM_LBUTTONDOWN:
return (INT_PTR)FALSE;
// Prevent the select cursor from appearing
// Prevent the text selection pointer from appearing on hover
case WM_SETCURSOR:
SetCursor(LoadCursor(NULL, IDC_ARROW));
return (INT_PTR)TRUE;