From c148ccaca6e59bd8297db1d6acd1161e2e4563e3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 17 Aug 2014 18:06:36 -0400 Subject: Finished the implementation of checkboxes on Windows Tables. --- redo/table_windows.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'redo/table_windows.c') diff --git a/redo/table_windows.c b/redo/table_windows.c index cd780d3..e2acbc9 100644 --- a/redo/table_windows.c +++ b/redo/table_windows.c @@ -42,10 +42,19 @@ static LRESULT CALLBACK tableSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM handle(hwnd, wParam, lParam, tableSetHot, (void *) data); // and let the list view do its thing return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam); + case WM_LBUTTONDOWN: + handle(hwnd, wParam, lParam, tablePushed, (void *) data); + // and let the list view do its thing + return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam); case WM_LBUTTONUP: handle(hwnd, wParam, lParam, tableToggled, (void *) data); // and let the list view do its thing return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam); + case WM_MOUSELEAVE: + // TODO doesn't work + tablePushed((void *) data, -1, -1); // in case button held as drag out + // and let the list view do its thing + return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam); // see table.autoresize() in table_windows.go for the column autosize policy case WM_NOTIFY: // from the contained header control if (nmhdr->code == HDN_BEGINTRACK) -- cgit v1.2.3