From 257fd8f07c821a9dd1f879e94c703cbbb9a2c764 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 17 Jul 2014 18:36:44 -0400 Subject: Added the code for the subclassing. And it smashes the stack. Wonderful... --- redo/comctl32_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redo/comctl32_windows.go') diff --git a/redo/comctl32_windows.go b/redo/comctl32_windows.go index 6b3d6e5..282d721 100644 --- a/redo/comctl32_windows.go +++ b/redo/comctl32_windows.go @@ -102,8 +102,8 @@ func f_RemoveWindowSubclass(hwnd uintptr, subproc uintptr, id t_UINT_PTR) (uintp return r1, err } -func f_DefSubclassProc(hwnd uintptr, uMsg t_UINT, wParam t_WPARAM, lParam t_LPARAM, id t_UINT_PTR, data t_DWORD_PTR) t_LRESULT { - r1, _, _ := fv_DefSubclassProc.Call(hwnd, uintptr(uMsg), uintptr(wParam), uintptr(lParam), uintptr(id), uintptr(data)) +func f_DefSubclassProc(hwnd uintptr, uMsg t_UINT, wParam t_WPARAM, lParam t_LPARAM) t_LRESULT { + r1, _, _ := fv_DefSubclassProc.Call(hwnd, uintptr(uMsg), uintptr(wParam), uintptr(lParam)) return t_LRESULT(r1) } -- cgit v1.2.3