diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-17 17:30:25 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-17 17:30:25 -0400 |
| commit | 8f5df78f2a257a7d70903d56bdca0057b4c989d0 (patch) | |
| tree | 74d3287d8677537eb4d0a476784271af8ae61bfb | |
| parent | d9b9a9a74346c4933a11e2369d56a22cf51b12aa (diff) | |
Fixed up hover handling. Thanks to Jonathan Potter on Stack Overflow.
| -rw-r--r-- | redo/table_windows.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/redo/table_windows.c b/redo/table_windows.c index 357da25..c0697ef 100644 --- a/redo/table_windows.c +++ b/redo/table_windows.c @@ -14,11 +14,14 @@ static void handleMouseMove(HWND hwnd, WPARAM wParam, LPARAM lParam, void *data) ZeroMemory(&ht, sizeof (LVHITTESTINFO)); ht.pt.x = GET_X_LPARAM(lParam); ht.pt.y = GET_Y_LPARAM(lParam); - ht.flags = LVHT_ONITEMSTATEICON; if (SendMessageW(hwnd, LVM_SUBITEMHITTEST, 0, (LPARAM) (&ht)) == (LRESULT) -1) { tableSetHot(data, -1, -1); return; // no item } + if (ht.flags != LVHT_ONITEMSTATEICON) { + tableSetHot(data, -1, -1); + return; + } tableSetHot(data, ht.iItem, ht.iSubItem); } |
