Fixed paintControlBackground() on Windows; there is no longera guarantee of every control being put on top of a container.

This commit is contained in:
Pietro Gagliardi 2014-10-18 09:25:54 -04:00
parent 1face3a455
commit 0f6e65188a
1 changed files with 1 additions and 6 deletions

View File

@ -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)