diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-14 16:00:31 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-14 16:00:31 -0400 |
| commit | d944af860934fdf8a3a38fc48a0b158428d90a0f (patch) | |
| tree | 6f6fcdf7f4ea23aad39befbe1478d36caf3ed575 /redo/window_windows.c | |
| parent | 52339e1f11829e1442c68259632ab9b5b9416e0e (diff) | |
Split out common container window procedure code in Windows to its own function.
Diffstat (limited to 'redo/window_windows.c')
| -rw-r--r-- | redo/window_windows.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/redo/window_windows.c b/redo/window_windows.c index dcb233a..5ea83f1 100644 --- a/redo/window_windows.c +++ b/redo/window_windows.c @@ -9,6 +9,7 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA { void *data; RECT r; + LRESULT shared; data = (void *) GetWindowLongPtrW(hwnd, GWLP_USERDATA); if (data == NULL) { @@ -21,12 +22,9 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA // act as if we're not ready yet, even during WM_NCCREATE (nothing important to the switch statement below happens here anyway) return DefWindowProcW(hwnd, uMsg, wParam, lParam); } - + if (sharedWndProc(hwnd, uMsg, wParam, lParam, &shared)) + return shared; switch (uMsg) { - case WM_COMMAND: - return forwardCommand(hwnd, uMsg, wParam, lParam); - case WM_NOTIFY: - return forwardNotify(hwnd, uMsg, wParam, lParam); case WM_SIZE: if (GetClientRect(hwnd, &r) == 0) xpanic("error getting client rect for Window in WM_SIZE", GetLastError()); |
