From b991496f8386faeb01d7d2f8fddb42b57a53b10d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 24 May 2015 14:50:25 -0400 Subject: [PATCH] Set up Windows containers to draw their parents as backgrounds again. --- redo/windows/container.c | 3 --- redo/windows/parent.c | 3 +-- redo/windows/uipriv_windows.h | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/redo/windows/container.c b/redo/windows/container.c index 835dc14e..170cf737 100644 --- a/redo/windows/container.c +++ b/redo/windows/container.c @@ -12,7 +12,6 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP if (handleParentMessages(hwnd, uMsg, wParam, lParam, &lResult) != FALSE) return lResult; -/* TODO switch (uMsg) { case WM_PAINT: dc = BeginPaint(hwnd, &ps); @@ -33,8 +32,6 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP // we draw the whole update area anyway return 1; } -*/ - return DefWindowProcW(hwnd, uMsg, wParam, lParam); } diff --git a/redo/windows/parent.c b/redo/windows/parent.c index 52db218a..aa107d53 100644 --- a/redo/windows/parent.c +++ b/redo/windows/parent.c @@ -83,8 +83,7 @@ static HBRUSH getControlBackgroundBrush(HWND hwnd, HDC dc) return brush; } -// TODO -static void paintContainerBackground(HWND hwnd, HDC dc, RECT *paintRect) +void paintContainerBackground(HWND hwnd, HDC dc, RECT *paintRect) { HWND parent; RECT paintRectParent; diff --git a/redo/windows/uipriv_windows.h b/redo/windows/uipriv_windows.h index 1b1aaa91..9b32313b 100644 --- a/redo/windows/uipriv_windows.h +++ b/redo/windows/uipriv_windows.h @@ -78,6 +78,7 @@ extern const char *initUtilWindow(HICON, HCURSOR); extern void uninitUtilWindow(void); // parent.c +extern void paintContainerBackground(HWND, HDC, RECT *); extern BOOL handleParentMessages(HWND, UINT, WPARAM, LPARAM, LRESULT *); // debug.c