summaryrefslogtreecommitdiff
path: root/wndproc.go
diff options
context:
space:
mode:
Diffstat (limited to 'wndproc.go')
-rw-r--r--wndproc.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/wndproc.go b/wndproc.go
deleted file mode 100644
index b9c13f2..0000000
--- a/wndproc.go
+++ /dev/null
@@ -1,24 +0,0 @@
-// 8 february 2014
-package main
-
-import (
-// "syscall"
-// "unsafe"
-)
-
-// TODO error handling
-type WNDPROC func(hwnd HWND, uMsg uint32, wParam WPARAM, lParam LPARAM) LRESULT
-
-var (
- defWindowProc = user32.NewProc("DefWindowProcW")
-)
-
-// TODO error handling
-func DefWindowProc(hwnd HWND, uMsg uint32, wParam WPARAM, lParam LPARAM) LRESULT {
- r1, _, _ := defWindowProc.Call(
- uintptr(hwnd),
- uintptr(uMsg),
- uintptr(wParam),
- uintptr(lParam))
- return LRESULT(r1)
-}