#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/log.h"
+ #include "wx/intl.h"
#endif //WX_PRECOMP
#include "wx/metafile.h"
// wxEnhMetaFile
// ----------------------------------------------------------------------------
+void wxEnhMetaFile::Init()
+{
+ if ( m_filename.empty() )
+ {
+ m_hMF = 0;
+ }
+ else // have valid file name, load metafile from it
+ {
+ m_hMF = GetEnhMetaFile(m_filename);
+ if ( !m_hMF )
+ wxLogSysError(_("Failed to load metafile from file \"%s\"."),
+ m_filename.c_str());
+ }
+}
+
void wxEnhMetaFile::Assign(const wxEnhMetaFile& mf)
{
if ( &mf == this )