From 7eaadad25ca26c254139e3cdeb31d4cb9eb67f46 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 7 Jan 2015 21:34:12 -0500 Subject: Implemented checkbox notifications. --- wintable/checkboxes.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'wintable/checkboxes.h') 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) -- cgit v1.2.3