X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19193a2c85987b595932957e73013e7ea100f0e8..8b3fddc49326c0b6019cd7082218726aa17a5727:/src/os2/dcclient.cpp 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 // ----------------------------------------------------------------------------