+void wxEnhMetaFile::Init()
+{
+ if ( m_filename.empty() )
+ {
+ m_hMF = 0;
+ }
+ else // have valid file name, load metafile from it
+ {
+ m_hMF = (WXHANDLE)::GetEnhMetaFile(m_filename);
+ if ( !m_hMF )
+ wxLogSysError(_("Failed to load metafile from file \"%s\"."),
+ m_filename.c_str());
+ }
+}
+