diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 1015eaa58a..11570c8c40 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -1488,7 +1488,7 @@ void wxDC::SetFont(const wxFont& font) else // selected ok { if ( !m_oldFont ) - m_oldFont = (WXHPEN)hfont; + m_oldFont = (WXHFONT)hfont; m_font = font; } @@ -1581,7 +1581,7 @@ void wxDC::SetBrush(const wxBrush& brush) else // selected ok { if ( !m_oldBrush ) - m_oldBrush = (WXHPEN)hbrush; + m_oldBrush = (WXHBRUSH)hbrush; m_brush = brush; } diff --git a/src/msw/enhmeta.cpp b/src/msw/enhmeta.cpp index cf6e758b69..ce2ecc0ae8 100644 --- a/src/msw/enhmeta.cpp +++ b/src/msw/enhmeta.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: msw/enhmeta.cpp +// Name: src/msw/enhmeta.cpp // Purpose: implementation of wxEnhMetaFileXXX classes // Author: Vadim Zeitlin // Modified by: @@ -75,7 +75,7 @@ void wxEnhMetaFile::Init() } else // have valid file name, load metafile from it { - m_hMF = GetEnhMetaFile(m_filename); + m_hMF = (WXHANDLE)::GetEnhMetaFile(m_filename); if ( !m_hMF ) wxLogSysError(_("Failed to load metafile from file \"%s\"."), m_filename.c_str());