]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/metafile.cpp
added test for wxScopeGuard
[wxWidgets.git] / src / msw / metafile.cpp
index ec6f66f44f91e8e50cc1f29d5babf88721e3ee80..7e48d2c979a0fff0da6a65e9166ef2cc994ca7bd 100644 (file)
@@ -232,7 +232,7 @@ void wxMetafileDC::GetTextExtent(const wxString& string, long *x, long *y,
 
     SIZE sizeRect;
     TEXTMETRIC tm;
-    GetTextExtentPoint(dc, WXSTRINGCAST string, wxStrlen(WXSTRINGCAST string), &sizeRect);
+    ::GetTextExtentPoint32(dc, WXSTRINGCAST string, wxStrlen(WXSTRINGCAST string), &sizeRect);
     GetTextMetrics(dc, &tm);
 
     ReleaseDC(NULL, dc);