summaryrefslogtreecommitdiff
path: root/wintable/checkboxes.h
diff options
context:
space:
mode:
Diffstat (limited to 'wintable/checkboxes.h')
-rw-r--r--wintable/checkboxes.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/wintable/checkboxes.h b/wintable/checkboxes.h
index 67bc745..6e62621 100644
--- a/wintable/checkboxes.h
+++ b/wintable/checkboxes.h
@@ -199,9 +199,6 @@ HANDLER(checkboxMouseDownHandler)
return TRUE;
}
-// TODO get rid of this
-struct rowcol lastCheckbox;
-
HANDLER(checkboxMouseUpHandler)
{
struct rowcol rc;
@@ -225,8 +222,7 @@ HANDLER(checkboxMouseUpHandler)
pt.y = GET_Y_LPARAM(lParam);
if (PtInRect(&r, pt) == 0)
goto wrongUp;
- // TODO send toggle event
-lastCheckbox = rc;
+ notify(t, tableNotificationCellCheckboxToggled, rc.row, rc.column, 0);
t->checkboxMouseDown = FALSE;
// TODO redraw the whole cell?
if (InvalidateRect(t->hwnd, &r, TRUE) == 0)