diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-25 15:58:24 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-25 15:58:24 -0400 |
| commit | 9ea22218ffacc8a3e5395d8670e9d62584969753 (patch) | |
| tree | 70a000ba42da7ae5aad769c645d1a45e3459f42d /redo/controls_windows.c | |
| parent | d515bd74c68dfef84fface6d61a6ea9264d4e70e (diff) | |
Implemented Tab on Windows.
Diffstat (limited to 'redo/controls_windows.c')
| -rw-r--r-- | redo/controls_windows.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/redo/controls_windows.c b/redo/controls_windows.c index b3edb71..8974bdb 100644 --- a/redo/controls_windows.c +++ b/redo/controls_windows.c @@ -50,6 +50,17 @@ LRESULT forwardCommand(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return DefWindowProcW(hwnd, uMsg, wParam, lParam); } +LRESULT forwardNotify(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) +{ + NMHDR *nmhdr = (NMHDR *) lParam; + HWND control = nmhdr->hwndFrom; + + /* don't generate an event if the control (if there is one) is unparented (a child of the message-only window) */ + if (control != NULL && IsChild(msgwin, control) == 0) + return SendMessageW(control, msgNOTIFY, wParam, lParam); + return DefWindowProcW(hwnd, uMsg, wParam, lParam); +} + static LRESULT CALLBACK buttonSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR id, DWORD_PTR data) { switch (uMsg) { |
