diff options
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) |
