diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-11 20:14:19 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-11 20:14:19 -0500 |
| commit | 88363e131c2bfba9bdd4e395faa7ced64f3750c1 (patch) | |
| tree | c42beba7bbcbd0e5d4bdd8825ff42f9d7e8febe2 /stdwndclass_windows.go | |
| parent | cee78198e483c7814d0a2654349ce3e3586b26c0 (diff) | |
Got rid of the reverse HWND->sysData lookup for now, to see if there's a mistake elsewhere. Now we're up to a panic... with Success...
Diffstat (limited to 'stdwndclass_windows.go')
| -rw-r--r-- | stdwndclass_windows.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index b2b82fd..f720051 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -16,7 +16,7 @@ var ( ) func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESULT { - sysData := getSysData(hwnd) +// sysData := getSysData(hwnd) switch uMsg { case _WM_COMMAND: id := wParam.LOWORD() @@ -32,10 +32,10 @@ func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESUL // TODO return 0 case _WM_CLOSE: - if sysData.closing != nil { +/* if sysData.closing != nil { sysData.closing <- struct{}{} } - return 0 +*/ return 0 default: r1, _, _ := defWindowProc.Call( uintptr(hwnd), |
