summaryrefslogtreecommitdiff
path: root/uitask_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-30 14:13:47 -0400
committerPietro Gagliardi <[email protected]>2014-05-30 14:15:32 -0400
commitc543f5639b121bcdae11f681466c030394902f65 (patch)
tree79d951d0fe67d0d3908223625b4acd469ae78b60 /uitask_windows.go
parent78c909cc9ba87abc759767c11b34a9cccf8ef34c (diff)
Normalized DefWindowProc() handling across the Windows files; the syscall.LazyProc now has the normalized name _defWindowProc and defWindowProc() is a convenience function that calls _defWindowProc properly. This will also be important for the switch to a single window class per Window/Area.
Diffstat (limited to 'uitask_windows.go')
-rw-r--r--uitask_windows.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/uitask_windows.go b/uitask_windows.go
index 2002e7c..563cca9 100644
--- a/uitask_windows.go
+++ b/uitask_windows.go
@@ -178,10 +178,5 @@ func messageHandlerWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPAR
_postQuitMessage.Call(0)
return 0
}
- r1, _, _ := defWindowProc.Call(
- uintptr(hwnd),
- uintptr(uMsg),
- uintptr(wParam),
- uintptr(lParam))
- return _LRESULT(r1)
+ return defWindowProc(hwnd, uMsg, wParam, lParam)
}