diff options
| author | Pietro Gagliardi <[email protected]> | 2015-02-19 22:58:17 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-02-19 22:58:17 -0500 |
| commit | cab2d934495949cadf5345f910339054f426ccea (patch) | |
| tree | 41d9e85b1393bda18d0075e8ad7376ddba22e5b1 /wintable | |
| parent | 6b9f1f282fc0aeb2654538a60a6f81dd99421ae1 (diff) | |
Added tableGetSelection to the new Windows Table and hooked it up to package ui's Table.
Diffstat (limited to 'wintable')
| -rw-r--r-- | wintable/api.h | 9 | ||||
| -rw-r--r-- | wintable/includethis.h | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/wintable/api.h b/wintable/api.h index 04c7561..78bf514 100644 --- a/wintable/api.h +++ b/wintable/api.h @@ -63,6 +63,15 @@ HANDLER(apiHandlers) setRowCount(t, *rcp); *lResult = 0; return TRUE; + case tableGetSelection: + rcp = (intptr_t *) wParam; + if (rcp != NULL) + *rcp = t->selectedRow; + rcp = (intptr_t *) lParam; + if (rcp != NULL) + *rcp = t->selectedColumn; + *lResult = 0; + return TRUE; } return FALSE; } diff --git a/wintable/includethis.h b/wintable/includethis.h index 4c7ee2a..f40c6f3 100644 --- a/wintable/includethis.h +++ b/wintable/includethis.h @@ -14,6 +14,11 @@ enum { // wParam - 0 // lParam - pointer to intptr_t containing new count tableSetRowCount, + // wParam - pointer to intptr_t where selected row will be stored + // lParam - pointer to intptr_t where selected column will be stored + // both will be -1 for no selection + // if either is NULL, that value is not written + tableGetSelection, }; enum { |
