From f131ac432bceb9129bf62af88cdf6e301e85a488 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 18 Aug 2014 22:45:40 -0400 Subject: Implemented the beginning of a potential solution to the Windows modality issue. --- redo/window_windows.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'redo/window_windows.c') diff --git a/redo/window_windows.c b/redo/window_windows.c index 0db16bb..8a042e0 100644 --- a/redo/window_windows.c +++ b/redo/window_windows.c @@ -11,12 +11,18 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA RECT r; LRESULT lResult; - data = getWindowData(hwnd, uMsg, wParam, lParam, &lResult, storeWindowHWND); + data = (void *) getWindowData(hwnd, uMsg, wParam, lParam, &lResult, storeWindowHWND); if (data == NULL) return lResult; if (sharedWndProc(hwnd, uMsg, wParam, lParam, &lResult)) return lResult; switch (uMsg) { + case msgBeginModal: + windowBeginModal(data); + return 0; + case msgEndModal: + windowEndModal(data); + return 0; case WM_SIZE: if (GetClientRect(hwnd, &r) == 0) xpanic("error getting client rect for Window in WM_SIZE", GetLastError()); -- cgit v1.2.3