summaryrefslogtreecommitdiff
path: root/redo/imagelist_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-16 17:37:21 -0400
committerPietro Gagliardi <[email protected]>2014-08-16 17:37:21 -0400
commitd5f9c237b7e81e54e91241d49d2a8ad718bd397c (patch)
treeee7d4c75c05b1b2144f83f7f07c1e20bcea6eab3 /redo/imagelist_windows.go
parent5d69bc2534cd3a90a2c93c564c2fcfc5accd5fad (diff)
Added image lists to Tables and added them to the Windows backend... mostly. There are a few kinks to work out...
Diffstat (limited to 'redo/imagelist_windows.go')
-rw-r--r--redo/imagelist_windows.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/redo/imagelist_windows.go b/redo/imagelist_windows.go
index 389c553..37924bd 100644
--- a/redo/imagelist_windows.go
+++ b/redo/imagelist_windows.go
@@ -31,15 +31,15 @@ func (i *imagelist) Len() ImageIndex {
}
type imageListApply interface {
- apply()
+ apply(C.HWND, C.UINT, C.WPARAM)
}
-func (i *imagelist) apply() {
+func (i *imagelist) apply(hwnd C.HWND, uMsg C.UINT, wParam C.WPARAM) {
width := C.GetSystemMetrics(C.SM_CXSMICON)
height := C.GetSystemMetrics(C.SM_CYSMICON)
il := C.newImageList(width, height)
for index := range i.list {
- C.addImage(il, i.list[index], C.int(i.width[index]), C.int(i.height[index]), width, height)
+ C.addImage(il, hwnd, i.list[index], C.int(i.width[index]), C.int(i.height[index]), width, height)
}
- // TODO do stuff
+ C.applyImageList(hwnd, uMsg, wParam, il)
}