summaryrefslogtreecommitdiff
path: root/redo/container_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'redo/container_windows.c')
-rw-r--r--redo/container_windows.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/redo/container_windows.c b/redo/container_windows.c
index f92459c..4d5215a 100644
--- a/redo/container_windows.c
+++ b/redo/container_windows.c
@@ -15,10 +15,7 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
{
void *data;
RECT r;
- HDC dc;
- PAINTSTRUCT ps;
- HWND parent;
- POINT client;
+ LRESULT shared;
data = (void *) GetWindowLongPtrW(hwnd, GWLP_USERDATA);
if (data == NULL) {
@@ -31,12 +28,9 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
// 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());