]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
fix for IsAlive() called after Kill() or Exit()
[wxWidgets.git] / src / msw / control.cpp
index fc29f742cc0572b3c7002f985353d58db97c046c..94cc8a9dc25155446a5cfd65f67f62174d2b59b4 100644 (file)
@@ -276,11 +276,6 @@ WXHBRUSH wxControl::OnCtlColor(WXHDC pDC, WXHWND WXUNUSED(pWnd), WXUINT WXUNUSED
 #endif // wxUSE_CTL3D
 
     HDC hdc = (HDC)pDC;
-    if (GetParent()->GetTransparentBackground() /* || (GetParent()->GetExtraStyle() & wxWS_EX_THEMED_BACKGROUND) */ )
-        SetBkMode(hdc, TRANSPARENT);
-    else
-        SetBkMode(hdc, OPAQUE);
-
     wxColour colBack = GetBackgroundColour();
 
     ::SetBkColor(hdc, wxColourToRGB(colBack));