X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55bfbcb92b41ab1c6a0d490f2f3fcadefc069bb7..6a8cbe1b9202ee5eb7a8bfa9b2ce66afeadfad6a:/src/os2/toolbar.cpp diff --git a/src/os2/toolbar.cpp b/src/os2/toolbar.cpp index edc4752374..e07ee3e356 100644 --- a/src/os2/toolbar.cpp +++ b/src/os2/toolbar.cpp @@ -26,6 +26,7 @@ #endif #include "wx/tooltip.h" +#include "wx/os2/dcclient.h" bool wxToolBar::m_bInitialized = false; @@ -601,7 +602,8 @@ void wxToolBar::OnPaint ( return; nCount++; - ::WinFillRect(vDc.GetHPS(), &vDc.m_vRclPaint, GetBackgroundColour().GetPixel()); + wxPMDCImpl *impl = (wxPMDCImpl*) vDc.GetImpl(); + ::WinFillRect(impl->GetHPS(), &impl->m_vRclPaint, GetBackgroundColour().GetPixel()); for ( wxToolBarToolsList::compatibility_iterator node = m_tools.GetFirst(); node; node = node->GetNext() )