Set up Windows containers to draw their parents as backgrounds again.

This commit is contained in:
Pietro Gagliardi 2015-05-24 14:50:25 -04:00
parent bcad0080b2
commit b991496f83
3 changed files with 2 additions and 5 deletions

View File

@ -12,7 +12,6 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
if (handleParentMessages(hwnd, uMsg, wParam, lParam, &lResult) != FALSE) if (handleParentMessages(hwnd, uMsg, wParam, lParam, &lResult) != FALSE)
return lResult; return lResult;
/* TODO
switch (uMsg) { switch (uMsg) {
case WM_PAINT: case WM_PAINT:
dc = BeginPaint(hwnd, &ps); 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 // we draw the whole update area anyway
return 1; return 1;
} }
*/
return DefWindowProcW(hwnd, uMsg, wParam, lParam); return DefWindowProcW(hwnd, uMsg, wParam, lParam);
} }

View File

@ -83,8 +83,7 @@ static HBRUSH getControlBackgroundBrush(HWND hwnd, HDC dc)
return brush; return brush;
} }
// TODO void paintContainerBackground(HWND hwnd, HDC dc, RECT *paintRect)
static void paintContainerBackground(HWND hwnd, HDC dc, RECT *paintRect)
{ {
HWND parent; HWND parent;
RECT paintRectParent; RECT paintRectParent;

View File

@ -78,6 +78,7 @@ extern const char *initUtilWindow(HICON, HCURSOR);
extern void uninitUtilWindow(void); extern void uninitUtilWindow(void);
// parent.c // parent.c
extern void paintContainerBackground(HWND, HDC, RECT *);
extern BOOL handleParentMessages(HWND, UINT, WPARAM, LPARAM, LRESULT *); extern BOOL handleParentMessages(HWND, UINT, WPARAM, LPARAM, LRESULT *);
// debug.c // debug.c