summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-20 20:56:14 -0400
committerPietro Gagliardi <[email protected]>2014-08-20 20:56:14 -0400
commitf033320f964b5b3bde62523a5df52e5e7dd4101c (patch)
tree8cae552b711ca62e0afa7e8922a69a81a3e916ee
parent3b380ea07fea564059aa1c6ecc97c6c923a9cb4e (diff)
Made Tables on Windows single-selection.
-rw-r--r--redo/table_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/table_windows.go b/redo/table_windows.go
index 41aa363..1ed09b8 100644
--- a/redo/table_windows.go
+++ b/redo/table_windows.go
@@ -25,7 +25,7 @@ type table struct {
func finishNewTable(b *tablebase, ty reflect.Type) Table {
t := &table{
_hwnd: C.newControl(C.xWC_LISTVIEW,
- C.LVS_REPORT | C.LVS_OWNERDATA | C.LVS_NOSORTHEADER | C.LVS_SHOWSELALWAYS | C.WS_HSCROLL | C.WS_VSCROLL | C.WS_TABSTOP,
+ C.LVS_REPORT | C.LVS_OWNERDATA | C.LVS_NOSORTHEADER | C.LVS_SHOWSELALWAYS | C.LVS_SINGLESEL | C.WS_HSCROLL | C.WS_VSCROLL | C.WS_TABSTOP,
C.WS_EX_CLIENTEDGE), // WS_EX_CLIENTEDGE without WS_BORDER will show the canonical visual styles border (thanks to MindChild in irc.efnet.net/#winprog)
tablebase: b,
hotrow: -1,