diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 02:55:33 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 02:55:33 -0400 |
| commit | d14735883d6bd5df71fc88481b19d44113f7c810 (patch) | |
| tree | 1a22447f16b8525bf6e8ceaa186d0ca1622fab05 /new/window_windows.c | |
| parent | 3160b1ae1f9323ac9546e8d0de14cf190b7af5f2 (diff) | |
Hooked up the WM_COMMAND and WM_NOTIFY bouncers.
Diffstat (limited to 'new/window_windows.c')
| -rw-r--r-- | new/window_windows.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/new/window_windows.c b/new/window_windows.c index 12655b9..aac61db 100644 --- a/new/window_windows.c +++ b/new/window_windows.c @@ -14,6 +14,7 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA { uiWindow *w; CREATESTRUCTW *cs = (CREATESTRUCTW *) lParam; + LRESULT lr; w = (uiWindow *) GetWindowLongPtrW(hwnd, GWLP_USERDATA); if (w == NULL) { @@ -22,6 +23,8 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA // fall through to DefWindowProc() anyway return DefWindowProcW(hwnd, uMsg, wParam, lParam); } + if (sharedWindowProc(hwnd, uMsg, wParam, lParam, &lResult) != FALSE) + return lResult; switch (uMsg) { case WM_CLOSE: if (!(*(w->onClosing))(w, w->onClosingData)) |
