+#if wxUSE_DATAOBJ
+size_t wxMetafileDataObject::GetDataSize() const
+{
+ return GetHandleSize( (Handle) (*((wxMetafile*)&m_metafile)).GetHMETAFILE() ) ;
+}
+
+bool wxMetafileDataObject::GetDataHere(void *buf) const
+{
+ memcpy( buf , (*(PicHandle)(*((wxMetafile*)&m_metafile)).GetHMETAFILE()) ,
+ GetHandleSize( (Handle) (*((wxMetafile*)&m_metafile)).GetHMETAFILE() ) ) ;
+ return true ;
+}
+
+bool wxMetafileDataObject::SetData(size_t len, const void *buf)
+{
+ Handle handle = (Handle) m_metafile.GetHMETAFILE() ;
+ SetHandleSize( handle , len ) ;
+ memcpy( *handle , buf , len ) ;
+ return true ;
+}
+#endif
+