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)
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);
}

View File

@ -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;

View File

@ -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