#include <math.h>
#if wxUSE_COMMON_DIALOGS
+#if wxUSE_NORLANDER_HEADERS
+ #include <windows.h>
+#endif
#include <commdlg.h>
#endif
void wxDC::DoSetClippingRegionAsRegion(const wxRegion& region)
{
- wxCHECK_RET( region.GetHRGN(), _T("invalid clipping region") );
+ wxCHECK_RET( region.GetHRGN(), wxT("invalid clipping region") );
wxRect box = region.GetBox();
}
else
{
- wxCHECK_RET( m_selectedBitmap.Ok(), _T("this DC can't be cleared") );
+ wxCHECK_RET( m_selectedBitmap.Ok(), wxT("this DC can't be cleared") );
rect.left = 0; rect.top = 0;
rect.right = m_selectedBitmap.GetWidth();
Arc(GetHdc(),xxx1,yyy1,xxx2,yyy2,
xx1,yy1,xx2,yy2);
- CalcBoundingBox((xc-radius), (yc-radius));
- CalcBoundingBox((xc+radius), (yc+radius));
+ CalcBoundingBox((long)(xc-radius), (long)(yc-radius));
+ CalcBoundingBox((long)(xc+radius), (long)(yc+radius));
}
void wxDC::DoDrawPoint(long x, long y)
HDC memdc = ::CreateCompatibleDC( cdc );
HBITMAP hbitmap = (HBITMAP) bmp.GetHBITMAP( );
- wxASSERT_MSG( hbitmap, _T("bitmap is ok but HBITMAP is NULL?") );
+ wxASSERT_MSG( hbitmap, wxT("bitmap is ok but HBITMAP is NULL?") );
::SelectObject( memdc, hbitmap );
::BitBlt( cdc, x, y, bmp.GetWidth(), bmp.GetHeight(), memdc, 0, 0, SRCCOPY);
HFONT f = (HFONT) ::SelectObject(GetHdc(), (HFONT) m_font.GetResourceHandle());
if (f == (HFONT) NULL)
{
- wxLogDebug(_T("::SelectObject failed in wxDC::SetFont."));
+ wxLogDebug(wxT("::SelectObject failed in wxDC::SetFont."));
}
if (!m_oldFont)
m_oldFont = (WXHFONT) f;