diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-17 15:10:26 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-17 15:10:26 -0400 |
| commit | 19f7b2946a6198862f860b1f7c5798c0d66b8fc1 (patch) | |
| tree | dcad78ffbde01eb9d4b952e15a33f6308eea8559 /redo/window_windows.go | |
| parent | 1a712d4064a646f366612139269d075db78d56cd (diff) | |
Laid down the framework for control events on Windows. The only problem left is that we need to use functions from comctl32.dll, so it's time to bring that blob of code back.
Diffstat (limited to 'redo/window_windows.go')
| -rw-r--r-- | redo/window_windows.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redo/window_windows.go b/redo/window_windows.go index 9bf0b26..c58d028 100644 --- a/redo/window_windows.go +++ b/redo/window_windows.go @@ -160,6 +160,7 @@ func (w *window) OnClosing(e func(Doer) bool) *Request { } } +// TODO msg -> uMsg func windowWndProc(hwnd uintptr, msg t_UINT, wParam t_WPARAM, lParam t_LPARAM) t_LRESULT { w := (*window)(unsafe.Pointer(f_GetWindowLongPtrW(hwnd, c_GWLP_USERDATA))) if w == nil { @@ -173,6 +174,8 @@ func windowWndProc(hwnd uintptr, msg t_UINT, wParam t_WPARAM, lParam t_LPARAM) t return f_DefWindowProcW(hwnd, msg, wParam, lParam) } switch msg { + case c_WM_COMMAND: + return forwardCommand(hwnd, msg, wParam, lParam) case c_WM_SIZE: var r s_RECT |
