Implemented the desire background behavior for controls in windows/parent.c. Only one thing remains: clipping.
This commit is contained in:
parent
9492e0b1c1
commit
57329ea332
|
@ -20,6 +20,7 @@ static void paintControlBackground(HWND hwnd, HDC dc)
|
||||||
HWND parent;
|
HWND parent;
|
||||||
RECT r;
|
RECT r;
|
||||||
POINT pOrig;
|
POINT pOrig;
|
||||||
|
int class;
|
||||||
DWORD le;
|
DWORD le;
|
||||||
|
|
||||||
parent = hwnd;
|
parent = hwnd;
|
||||||
|
@ -31,7 +32,9 @@ static void paintControlBackground(HWND hwnd, HDC dc)
|
||||||
if (parent == initialParent)
|
if (parent == initialParent)
|
||||||
return;
|
return;
|
||||||
// skip groupboxes; they're (supposed to be) transparent
|
// 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;
|
break;
|
||||||
}
|
}
|
||||||
if (GetWindowRect(hwnd, &r) == 0)
|
if (GetWindowRect(hwnd, &r) == 0)
|
||||||
|
|
Loading…
Reference in New Issue