X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b8797d96ca1d94443bd2201e9884fc9a16cb53bb..cc3977bf132d40cb66c6b488890ef67a396d4a0a:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 1cc9dce77e..056794b517 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -368,7 +368,7 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd) if ( !colBg.Ok() ) { if ( wxWindow *win = wxFindWinFromHandle(hWnd) ) - hbr = MSWGetBgBrush(pDC, win); + hbr = win->MSWGetBgBrush(pDC); // if the control doesn't have any bg colour, foreground colour will be // ignored as the return value would be 0 -- so forcefully give it a