diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-25 16:53:47 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-25 16:53:47 -0400 |
| commit | e25831c609ed882741dd01f3973be283e1a5bd47 (patch) | |
| tree | a0bad3126a449de257b22c7f2930b95d7fed3dc4 /redo/table_windows.go | |
| parent | 107e66715b1f3b69d3d3df6062d257b746edd6eb (diff) | |
Added cleanup of Windows image lists.
Diffstat (limited to 'redo/table_windows.go')
| -rw-r--r-- | redo/table_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redo/table_windows.go b/redo/table_windows.go index cb00279..281f0d4 100644 --- a/redo/table_windows.go +++ b/redo/table_windows.go @@ -40,7 +40,7 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table { // 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) // this must come after the subclass because it uses one of our private messages - C.SendMessageW(t._hwnd, C.msgTableMakeInitialImageList, 0, 0) + C.SendMessageW(t._hwnd, C.msgTableMakeInitialCheckboxImageList, 0, 0) for i := 0; i < ty.NumField(); i++ { C.tableAppendColumn(t._hwnd, C.int(i), toUTF16(ty.Field(i).Name)) } @@ -62,7 +62,7 @@ func (t *table) Unlock() { } func (t *table) LoadImageList(il ImageList) { - il.apply(t._hwnd, C.LVM_SETIMAGELIST, C.LVSIL_SMALL) + il.apply(t._hwnd, C.msgLoadImageList) } func (t *table) Selected() int { |
