summaryrefslogtreecommitdiff
path: root/redo
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-27 18:04:08 -0400
committerPietro Gagliardi <[email protected]>2014-08-27 18:04:08 -0400
commit1b2da465a1c6fb98cfa129ee254b47fcf7ad1fef (patch)
tree20283aa0f2729caeeb714ef4b21c170a7be0ff02 /redo
parent5a3baddd254070d5accbca21c325cfeca49990c9 (diff)
Removed wParam from handle() in table_Windows.c as it appears neitehr Control nor Shift affect checkboxes in Windows.
Diffstat (limited to 'redo')
-rw-r--r--redo/table_windows.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/redo/table_windows.c b/redo/table_windows.c
index a71b8e0..124dffb 100644
--- a/redo/table_windows.c
+++ b/redo/table_windows.c
@@ -6,11 +6,10 @@
// provided for cgo's benefit
LPWSTR xWC_LISTVIEW = WC_LISTVIEW;
-static void handle(HWND hwnd, WPARAM wParam, LPARAM lParam, void (*handler)(void *, int, int), void *data)
+static void handle(HWND hwnd, LPARAM lParam, void (*handler)(void *, int, int), void *data)
{
LVHITTESTINFO ht;
- // TODO use wParam
ZeroMemory(&ht, sizeof (LVHITTESTINFO));
ht.pt.x = GET_X_LPARAM(lParam);
ht.pt.y = GET_Y_LPARAM(lParam);
@@ -77,16 +76,16 @@ static LRESULT CALLBACK tableSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
}
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);
case WM_MOUSEMOVE:
- handle(hwnd, wParam, lParam, tableSetHot, t->gotable);
+ handle(hwnd, lParam, tableSetHot, t->gotable);
// and let the list view do its thing
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);
case WM_LBUTTONDOWN:
case WM_LBUTTONDBLCLK: // listviews have CS_DBLCICKS; check this to better mimic the behavior of a real checkbox
- handle(hwnd, wParam, lParam, tablePushed, t->gotable);
+ handle(hwnd, lParam, tablePushed, t->gotable);
// and let the list view do its thing
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);
case WM_LBUTTONUP:
- handle(hwnd, wParam, lParam, tableToggled, t->gotable);
+ handle(hwnd, lParam, tableToggled, t->gotable);
// and let the list view do its thing
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);
case WM_MOUSELEAVE: