implemented wxDC::DoGetSize() correctly for metafile DC classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-12-25 13:06:05 +00:00
parent f81dc6e931
commit 024026be1d
4 changed files with 30 additions and 1 deletions

View File

@@ -243,6 +243,16 @@ void wxMetafileDC::GetTextExtent(const wxString& string, long *x, long *y,
*externalLeading = tm.tmExternalLeading;
}
void wxMetafileDC::DoGetSize(int *width, int *height) const
{
wxCHECK_RET( m_refData, _T("invalid wxMetafileDC") );
if ( width )
*width = M_METAFILEDATA->m_width;
if ( height )
*height = M_METAFILEDATA->m_height;
}
wxMetafile *wxMetafileDC::Close()
{
SelectOldObjects(m_hDC);