}
else // have valid file name, load metafile from it
{
- m_hMF = (WXHANDLE)::GetEnhMetaFile(m_filename.fn_str());
+ m_hMF = (WXHANDLE)::GetEnhMetaFile(m_filename.t_str());
if ( !m_hMF )
{
wxLogSysError(_("Failed to load metafile from file \"%s\"."),
bool wxEnhMetaFile::Play(wxDC *dc, wxRect *rectBound)
{
- wxCHECK_MSG( Ok(), false, wxT("can't play invalid enhanced metafile") );
+ wxCHECK_MSG( IsOk(), false, wxT("can't play invalid enhanced metafile") );
wxCHECK_MSG( dc, false, wxT("invalid wxDC in wxEnhMetaFile::Play") );
RECT rect;
{
wxSize size = wxDefaultSize;
- if ( Ok() )
+ if ( IsOk() )
{
ENHMETAHEADER hdr;
if ( !::GetEnhMetaFileHeader(GetEMF(), sizeof(hdr), &hdr) )
bool wxEnhMetaFileDataObject::GetDataHere(const wxDataFormat& format, void *buf) const
{
- wxCHECK_MSG( m_metafile.Ok(), false, wxT("copying invalid enh metafile") );
+ wxCHECK_MSG( m_metafile.IsOk(), false, wxT("copying invalid enh metafile") );
HENHMETAFILE hEMF = (HENHMETAFILE)m_metafile.GetHENHMETAFILE();
bool wxEnhMetaFileSimpleDataObject::GetDataHere(void *buf) const
{
- wxCHECK_MSG( m_metafile.Ok(), false, wxT("copying invalid enh metafile") );
+ wxCHECK_MSG( m_metafile.IsOk(), false, wxT("copying invalid enh metafile") );
HENHMETAFILE hEMF = (HENHMETAFILE)m_metafile.GetHENHMETAFILE();