]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/drawing/drawing.cpp
call SetLegacyWMProperties last, it calls gtk_widget_realize, which will lead to...
[wxWidgets.git] / samples / drawing / drawing.cpp
index 2c217f88266d94bbec74b0ac0220fb9932b64fbb..497d68bf16f0b3cce539cbb175c1f757c0a0914a 100644 (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 );