Fixed paintControlBackground() on Windows; there is no longera guarantee of every control being put on top of a container.
This commit is contained in:
parent
1face3a455
commit
0f6e65188a
|
@ -105,14 +105,9 @@ void paintControlBackground(HWND hwnd, HDC dc)
|
||||||
parent = hwnd;
|
parent = hwnd;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
parent = GetParent(parent);
|
parent = GetParent(parent);
|
||||||
if (parent == NULL)
|
|
||||||
xpanic("error getting parent container of control in paintControlBackground()", GetLastError());
|
|
||||||
// wine sends these messages early, yay...
|
|
||||||
if (parent == msgwin)
|
|
||||||
return;
|
|
||||||
parent = GetParent(parent);
|
|
||||||
if (parent == NULL)
|
if (parent == NULL)
|
||||||
xpanic("error getting parent control of control in paintControlBackground()", GetLastError());
|
xpanic("error getting parent control of control in paintControlBackground()", GetLastError());
|
||||||
|
// wine sends these messages early, yay...
|
||||||
if (parent == msgwin)
|
if (parent == msgwin)
|
||||||
return;
|
return;
|
||||||
if (GetClassNameW(parent, classname, 128) == 0)
|
if (GetClassNameW(parent, classname, 128) == 0)
|
||||||
|
|
Loading…
Reference in New Issue