git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38968
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// on desktop WIN32 also, since the WIN32 docs imply that the user
// clipping region is independent from the paint clipping region.
::SelectClipRgn(GetHdc(), 0);
// on desktop WIN32 also, since the WIN32 docs imply that the user
// clipping region is independent from the paint clipping region.
::SelectClipRgn(GetHdc(), 0);
// TODO: this should restore the previous clipping region,
// so that OnPaint processing works correctly, and the update
// clipping region doesn't get destroyed after the first
// TODO: this should restore the previous clipping region,
// so that OnPaint processing works correctly, and the update
// clipping region doesn't get destroyed after the first
HRGN rgn = CreateRectRgn(0, 0, 32000, 32000);
::SelectClipRgn(GetHdc(), rgn);
::DeleteObject(rgn);
HRGN rgn = CreateRectRgn(0, 0, 32000, 32000);
::SelectClipRgn(GetHdc(), rgn);
::DeleteObject(rgn);
}
wxDCBase::DestroyClippingRegion();
}
wxDCBase::DestroyClippingRegion();
wxLogLastError(_T("GetTextExtentPoint32()"));
}
wxLogLastError(_T("GetTextExtentPoint32()"));
}
+#if !defined(_WIN32_WCE) || (_WIN32_WCE >= 400)
// the result computed by GetTextExtentPoint32() may be too small as it
// accounts for under/overhang of the first/last character while we want
// just the bounding rect for this string so adjust the width as needed
// the result computed by GetTextExtentPoint32() may be too small as it
// accounts for under/overhang of the first/last character while we want
// just the bounding rect for this string so adjust the width as needed
+ // (using API not available in 2002 SDKs of WinCE)
if ( len > 0 )
{
ABC width;
if ( len > 0 )
{
ABC width;
}
//else: GetCharABCWidths() failed, not a TrueType font?
}
}
//else: GetCharABCWidths() failed, not a TrueType font?
}
+#endif // !defined(_WIN32_WCE) || (_WIN32_WCE >= 400)
TEXTMETRIC tm;
::GetTextMetrics(GetHdc(), &tm);
TEXTMETRIC tm;
::GetTextMetrics(GetHdc(), &tm);