From 84e04cdae1cc6cb000d70d08ff5c379cf83ea07e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 28 Jul 2014 23:47:45 -0400 Subject: Set up some extended styles on Windows Tables for consistency and future features. --- redo/table_windows.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'redo/table_windows.c') diff --git a/redo/table_windows.c b/redo/table_windows.c index 151fe06..319aaaa 100644 --- a/redo/table_windows.c +++ b/redo/table_windows.c @@ -55,3 +55,9 @@ void tableUpdate(HWND hwnd, int nItems) if (SendMessageW(hwnd, LVM_SETITEMCOUNT, (WPARAM) nItems, 0) == 0) xpanic("error setting number of items in Table", GetLastError()); } + +void tableAddExtendedStyles(HWND hwnd, LPARAM styles) +{ + /* the bits of WPARAM specify which bits of LPARAM to look for; having WPARAM == LPARAM ensures that only the bits we want to add are affected */ + SendMessageW(hwnd, LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM) styles, styles); +} -- cgit v1.2.3