X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19193a2c85987b595932957e73013e7ea100f0e8..8912d7eb182ef5a5f95026a9ed239c9ad6c75915:/src/os2/dcclient.cpp?ds=sidebyside diff --git a/src/os2/dcclient.cpp b/src/os2/dcclient.cpp index 74264492a4..b8d62a043b 100644 --- a/src/os2/dcclient.cpp +++ b/src/os2/dcclient.cpp @@ -160,6 +160,17 @@ void wxWindowDC::InitDC() SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID)); } // end of wxWindowDC::InitDC +void wxWindowDC::DoGetSize( + int* pnWidth +, int* pnHeight +) const +{ + wxCHECK_RET( m_pCanvas, _T("wxWindowDC without a window?") ); + m_pCanvas->GetSize( pnWidth + ,pnHeight + ); +} // end of wxWindowDC::DoGetSize + // ---------------------------------------------------------------------------- // wxClientDC // ---------------------------------------------------------------------------- @@ -241,6 +252,17 @@ wxClientDC::~wxClientDC() { } // end of wxClientDC::~wxClientDC +void wxClientDC::DoGetSize( + int* pnWidth +, int* pnHeight +) const +{ + wxCHECK_RET( m_pCanvas, _T("wxWindowDC without a window?") ); + m_pCanvas->GetClientSize( pnWidth + ,pnHeight + ); +} // end of wxClientDC::DoGetSize + // ---------------------------------------------------------------------------- // wxPaintDC // ----------------------------------------------------------------------------