summaryrefslogtreecommitdiff
path: root/table_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-02-19 22:58:17 -0500
committerPietro Gagliardi <[email protected]>2015-02-19 22:58:17 -0500
commitcab2d934495949cadf5345f910339054f426ccea (patch)
tree41d9e85b1393bda18d0075e8ad7376ddba22e5b1 /table_windows.c
parent6b9f1f282fc0aeb2654538a60a6f81dd99421ae1 (diff)
Added tableGetSelection to the new Windows Table and hooked it up to package ui's Table.
Diffstat (limited to 'table_windows.c')
-rw-r--r--table_windows.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/table_windows.c b/table_windows.c
index 8d92a8e..8b352d7 100644
--- a/table_windows.c
+++ b/table_windows.c
@@ -74,10 +74,12 @@ void tableAutosizeColumns(HWND hwnd, int nColumns)
xpanic("error resizing columns of results list view", GetLastError());
}
-// because Go won't let me do C.WPARAM(-1)
intptr_t tableSelectedItem(HWND hwnd)
{
- return (intptr_t) SendMessageW(hwnd, LVM_GETNEXTITEM, (WPARAM) -1, LVNI_SELECTED);
+ intptr_t row;
+
+ SendMessageW(hwnd, tableGetSelection, (WPARAM) (&row), (LPARAM) NULL);
+ return row;
}
/*