diff options
Diffstat (limited to 'redo/table_windows.go')
| -rw-r--r-- | redo/table_windows.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redo/table_windows.go b/redo/table_windows.go index 6839be0..c3e0453 100644 --- a/redo/table_windows.go +++ b/redo/table_windows.go @@ -24,6 +24,9 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table { tablebase: b, } C.setTableSubclass(t.hwnd, unsafe.Pointer(t)) + // LVS_EX_FULLROWSELECT gives us selection across the whole row, not just the leftmost column; this makes the list view work like on other platforms + // LVS_EX_SUBITEMIMAGES gives us images in subitems, which will be important when both images and checkboxes are added + C.tableAddExtendedStyles(t.hwnd, C.LVS_EX_FULLROWSELECT | C.LVS_EX_SUBITEMIMAGES) for i := 0; i < ty.NumField(); i++ { C.tableAppendColumn(t.hwnd, C.int(i), toUTF16(ty.Field(i).Name)) } |
