X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/574c939ef1c1b835a8bc65c0fe724548fa04ec49..64b397664d8d8c0acd2630ea239ab420fe7fe007:/src/msw/dcclient.cpp diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index 6d5df17f48..720398ea5d 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -120,6 +120,13 @@ void wxWindowDC::InitDC() #endif } +void wxWindowDC::DoGetSize(int *width, int *height) const +{ + wxCHECK_RET( m_canvas, _T("wxWindowDC without a window?") ); + + m_canvas->GetSize(width, height); +} + // ---------------------------------------------------------------------------- // wxClientDC // ---------------------------------------------------------------------------- @@ -165,6 +172,13 @@ wxClientDC::~wxClientDC() { } +void wxClientDC::DoGetSize(int *width, int *height) const +{ + wxCHECK_RET( m_canvas, _T("wxClientDC without a window?") ); + + m_canvas->GetClientSize(width, height); +} + // ---------------------------------------------------------------------------- // wxPaintDC // ----------------------------------------------------------------------------