diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-11 17:38:38 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-11 17:38:38 -0500 |
| commit | eeff0d860593710a9c4a9749f599266892f276f8 (patch) | |
| tree | bf64ac26993008cd4c1febae5eac55b601dd5e73 /unmigrated/wndproc_windows.go | |
| parent | b727a972adbc90c3cdfbff2c462a583aefd48474 (diff) | |
Migrated over the window class and window procedure stuff, set up the standard window class, and wrote the skeleton window procedure.
Diffstat (limited to 'unmigrated/wndproc_windows.go')
| -rw-r--r-- | unmigrated/wndproc_windows.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/unmigrated/wndproc_windows.go b/unmigrated/wndproc_windows.go deleted file mode 100644 index b9c13f2..0000000 --- a/unmigrated/wndproc_windows.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) -} |
