summaryrefslogtreecommitdiff
path: root/wintable/select.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-01-07 16:24:17 -0500
committerPietro Gagliardi <[email protected]>2015-01-07 16:24:17 -0500
commit3b81ebab986d619742fffc052d4fca6a8c5080fd (patch)
tree1ef2eb935d51ed0dabbd61bcf8ce7bcb7a944dde /wintable/select.h
parent7c473a9fdcfd9c0efa09839b1f8da19a74ae2bdc (diff)
Switched the test program to make the Table an actual child window now that I'm about to implement actually getting data in the real world. Implemented focus grabbing. More TODOs.
Diffstat (limited to 'wintable/select.h')
-rw-r--r--wintable/select.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wintable/select.h b/wintable/select.h
index 0539e52..117dad5 100644
--- a/wintable/select.h
+++ b/wintable/select.h
@@ -109,6 +109,10 @@ HANDLER(mouseDownSelectHandler)
{
struct rowcol rc;
+ // TODO separate this from here
+ // TODO other mouse buttons?
+ // don't check SetFocus()'s error (http://stackoverflow.com/questions/24073695/winapi-can-setfocus-return-null-without-an-error-because-thats-what-im-see)
+ SetFocus(t->hwnd);
rc = lParamToRowColumn(t, lParam);
// don't check if lParamToRowColumn() returned row -1 or column -1; we want deselection behavior
doselect(t, rc.row, rc.column);