compilation fixes for --disable-compat28

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-05-15 13:01:19 +00:00
parent f35c88fcca
commit 6f207e6699
4 changed files with 8 additions and 7 deletions

View File

@@ -790,9 +790,9 @@ void MyCanvas::DrawText(wxDC& dc)
dc.DrawText( _T("This is Swiss 18pt text."), 110, 40 );
long length;
long height;
long descent;
wxCoord length;
wxCoord height;
wxCoord descent;
dc.GetTextExtent( _T("This is Swiss 18pt text."), &length, &height, &descent );
text.Printf( wxT("Dimensions are length %ld, height %ld, descent %ld"), length, height, descent );
dc.DrawText( text, 110, 80 );