diff options
Diffstat (limited to 'redo/imagelist_windows.go')
| -rw-r--r-- | redo/imagelist_windows.go | 6 |
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)))) } |
