[ 1502010 ] Cast to wrong type.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-06-07 17:12:57 +00:00
parent 7ce30d0b41
commit 658ff7f1d8
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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());