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;
|
||||
for (;;) {
|
||||
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)
|
||||
xpanic("error getting parent control of control in paintControlBackground()", GetLastError());
|
||||
// wine sends these messages early, yay...
|
||||
if (parent == msgwin)
|
||||
return;
|
||||
if (GetClassNameW(parent, classname, 128) == 0)
|
||||
|
|
Loading…
Reference in New Issue