summaryrefslogtreecommitdiff
path: root/redo/window_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-18 22:45:40 -0400
committerPietro Gagliardi <[email protected]>2014-08-18 22:45:40 -0400
commitf131ac432bceb9129bf62af88cdf6e301e85a488 (patch)
tree000e05fcdff3f5c79db12448ffa3154e5cd24a14 /redo/window_windows.c
parente0e52ad83457c5c7ad9afd4ae124be68c47333a6 (diff)
Implemented the beginning of a potential solution to the Windows modality issue.
Diffstat (limited to 'redo/window_windows.c')
-rw-r--r--redo/window_windows.c8
1 files changed, 7 insertions, 1 deletions
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());