summaryrefslogtreecommitdiff
path: root/redo/imagelist_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-25 16:53:47 -0400
committerPietro Gagliardi <[email protected]>2014-08-25 16:53:47 -0400
commite25831c609ed882741dd01f3973be283e1a5bd47 (patch)
treea0bad3126a449de257b22c7f2930b95d7fed3dc4 /redo/imagelist_windows.go
parent107e66715b1f3b69d3d3df6062d257b746edd6eb (diff)
Added cleanup of Windows image lists.
Diffstat (limited to 'redo/imagelist_windows.go')
-rw-r--r--redo/imagelist_windows.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/redo/imagelist_windows.go b/redo/imagelist_windows.go
index 37924bd..7ab014b 100644
--- a/redo/imagelist_windows.go
+++ b/redo/imagelist_windows.go
@@ -31,15 +31,15 @@ func (i *imagelist) Len() ImageIndex {
}
type imageListApply interface {
- apply(C.HWND, C.UINT, C.WPARAM)
+ apply(C.HWND, C.UINT)
}
-func (i *imagelist) apply(hwnd C.HWND, uMsg C.UINT, wParam C.WPARAM) {
+func (i *imagelist) apply(hwnd C.HWND, uMsg C.UINT) {
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, hwnd, i.list[index], C.int(i.width[index]), C.int(i.height[index]), width, height)
}
- C.applyImageList(hwnd, uMsg, wParam, il)
+ C.SendMessageW(hwnd, uMsg, 0, C.LPARAM(uintptr(unsafe.Pointer(il))))
}