mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-28 13:44:15 -04:00
[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:
parent
00947eb865
commit
7567ddef07
3 changed files with 13 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue