Implemented the desire background behavior for controls in windows/parent.c. Only one thing remains: clipping.

This commit is contained in:
Pietro Gagliardi 2015-04-18 20:31:32 -04:00
parent 9492e0b1c1
commit 57329ea332
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@ static void paintControlBackground(HWND hwnd, HDC dc)
HWND parent;
RECT r;
POINT pOrig;
int class;
DWORD le;
parent = hwnd;
@ -31,7 +32,9 @@ static void paintControlBackground(HWND hwnd, HDC dc)
if (parent == initialParent)
return;
// skip groupboxes; they're (supposed to be) transparent
if (windowClassOf(parent, L"button", NULL) != 0)
// skip uiParents for reasons described below
class = windowClassOf(parent, L"button", uiParentClass, NULL);
if (class != 0 && class != 1)
break;
}
if (GetWindowRect(hwnd, &r) == 0)