summaryrefslogtreecommitdiff
path: root/redo/table_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-25 11:51:38 -0400
committerPietro Gagliardi <[email protected]>2014-08-25 11:51:38 -0400
commit774e4519673cb81c07d3f87f74e4a41755d83051 (patch)
treea5bf968c278540d3c367daa46e04e2ec451d1a1d /redo/table_windows.go
parentfe01ebbbcde9f4f058b3967851ccf2f4718710c1 (diff)
Switched the image list stuff to a static function/message pair.
Diffstat (limited to 'redo/table_windows.go')
-rw-r--r--redo/table_windows.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/table_windows.go b/redo/table_windows.go
index 52d964f..cb00279 100644
--- a/redo/table_windows.go
+++ b/redo/table_windows.go
@@ -39,7 +39,8 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table {
// 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)
- C.tableSetCheckboxImageList(t._hwnd)
+ // this must come after the subclass because it uses one of our private messages
+ C.SendMessageW(t._hwnd, C.msgTableMakeInitialImageList, 0, 0)
for i := 0; i < ty.NumField(); i++ {
C.tableAppendColumn(t._hwnd, C.int(i), toUTF16(ty.Field(i).Name))
}