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)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue