diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-07 04:19:37 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-07 04:19:37 -0400 |
| commit | 77fdd9d1c34b6f75942996cfd578c3ccbe5fdd2d (patch) | |
| tree | aa9925b4fc8abe0eabcee1e43f91bc4b8aa2bf85 /area_windows.go | |
| parent | dcefa88a048339f7311c3e2ce98217013117c739 (diff) | |
Documented window switch clicks in Area and implemented them on Windows and Mac OS X.
Diffstat (limited to 'area_windows.go')
| -rw-r--r-- | area_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/area_windows.go b/area_windows.go index 3e133f7..273b25e 100644 --- a/area_windows.go +++ b/area_windows.go @@ -643,8 +643,8 @@ func areaWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESU // (see http://www.catch22.net/tuts/custom-controls) // don't bother checking SetFocus()'s error; see http://stackoverflow.com/questions/24073695/winapi-can-setfocus-return-null-without-an-error-because-thats-what-im-see/24074912#24074912 _setFocus.Call(uintptr(s.hwnd)) -// return _MA_ACTIVATE // TODO eat the click? - return defWindowProc(hwnd, uMsg, wParam, lParam) + // and don't eat the click, as we want to handle clicks that switch into Windows with Areas from other windows + return _MA_ACTIVATE case _WM_MOUSEMOVE: areaMouseEvent(s, 0, false, wParam, lParam) return 0 |
