summaryrefslogtreecommitdiff
path: root/wintable/checkboxes.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-01-07 21:34:12 -0500
committerPietro Gagliardi <[email protected]>2015-01-07 21:34:12 -0500
commit7eaadad25ca26c254139e3cdeb31d4cb9eb67f46 (patch)
tree3dd08bbc3bf2d4e99755d96f09713ffd5670dfbf /wintable/checkboxes.h
parent10cee922233d33df57e5f6195cb685b59d2bccaa (diff)
Implemented checkbox notifications.
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)