X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebfee17940b5123d0527b63bcf23e5f27002092e..b404a8f3b072129c107c6d9a5e0f6f53cd34807b:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 056794b517..0d937c9016 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -365,7 +365,7 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd) HDC hdc = (HDC)pDC; WXHBRUSH hbr = 0; - if ( !colBg.Ok() ) + if ( !colBg.IsOk() ) { if ( wxWindow *win = wxFindWinFromHandle(hWnd) ) hbr = win->MSWGetBgBrush(pDC); @@ -380,7 +380,7 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd) // use the background colour override if a valid colour is given: this is // used when the control is disabled to grey it out and also if colBg was // set just above - if ( colBg.Ok() ) + if ( colBg.IsOk() ) { wxBrush *brush = wxTheBrushList->FindOrCreateBrush(colBg); hbr = (WXHBRUSH)brush->GetResourceHandle();