diff options
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 { |
