diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-17 18:06:36 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-17 18:06:36 -0400 |
| commit | c148ccaca6e59bd8297db1d6acd1161e2e4563e3 (patch) | |
| tree | 53f870819d8c5ea55f26b070c93d66dc030b4c39 /redo/table_windows.c | |
| parent | 01a8fbd652eb3f2a25bda600bb3137a3cff4045d (diff) | |
Finished the implementation of checkboxes on Windows Tables.
Diffstat (limited to 'redo/table_windows.c')
| -rw-r--r-- | redo/table_windows.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) |
