diff options
Diffstat (limited to 'stdwndclass_windows.go')
| -rw-r--r-- | stdwndclass_windows.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index 3fa23c4..ac5dfd9 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -116,7 +116,7 @@ func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESUL switch ss.ctype { case c_button: if wParam.HIWORD() == _BN_CLICKED { - ss.signal() + ss.event() } case c_checkbox: // we opt into doing this ourselves because http://blogs.msdn.com/b/oldnewthing/archive/2014/05/22/10527522.aspx @@ -164,7 +164,11 @@ func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESUL } return 0 case _WM_CLOSE: - s.signal() + close := false // TODO decide apt default + s.close(&close) + if close { + s.hide() + } return 0 default: return defWindowProc(hwnd, uMsg, wParam, lParam) |
