Re-enabled events on Windows.

This commit is contained in:
Pietro Gagliardi 2015-05-18 09:52:37 -04:00
parent bf6357ef86
commit 2a5cdb6662
2 changed files with 7 additions and 2 deletions

View File

@ -5,11 +5,14 @@
static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
/* TODO
RECT r;
HDC dc;
PAINTSTRUCT ps;
LRESULT lResult;
if (handleParentMessages(hwnd, uMsg, wParam, lParam, &lResult) != FALSE)
return lResult;
/* TODO
switch (uMsg) {
case WM_PAINT:
dc = BeginPaint(hwnd, &ps);

View File

@ -20,6 +20,7 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
CREATESTRUCTW *cs = (CREATESTRUCTW *) lParam;
WINDOWPOS *wp = (WINDOWPOS *) lParam;
RECT r;
LRESULT lResult;
w = (struct window *) GetWindowLongPtrW(hwnd, GWLP_USERDATA);
if (w == NULL) {
@ -28,7 +29,8 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
// fall through to DefWindowProc() anyway
return DefWindowProcW(hwnd, uMsg, wParam, lParam);
}
// TODO container stuff
if (handleParentMessages(hwnd, uMsg, wParam, lParam, &lResult) != FALSE)
return lResult;
switch (uMsg) {
case WM_COMMAND:
// not a menu