Set up Windows containers to draw their parents as backgrounds again.
This commit is contained in:
parent
bcad0080b2
commit
b991496f83
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue