SetType( vType );
}
-wxDataFormat::wxDataFormat( const wxChar *zId )
-{
- SetId( zId );
-}
-
wxDataFormat::wxDataFormat( const wxString& rId )
{
SetId( rId );
}
}
-void wxDataFormat::SetId( const wxChar* zId )
+void wxDataFormat::SetId( const wxString& zId )
{
m_type = wxDF_PRIVATE;
m_id = zId;
// ----------------------------------------------------------------------------
#if wxUSE_UNICODE
-void wxTextDataObject::GetAllFormats( wxDataFormat *formats, wxDataObjectBase::Direction dir ) const
+void wxTextDataObject::GetAllFormats(wxDataFormat *formats,
+ wxDataObjectBase::Direction WXUNUSED(dir)) const
{
*formats++ = wxDataFormat( wxDF_TEXT );
*formats = wxDataFormat( wxDF_UNICODETEXT );
return buffLength + 1;
}
-bool wxFileDataObject::SetData( size_t nSize, const void *pBuf )
+bool wxFileDataObject::SetData( size_t WXUNUSED(nSize), const void *pBuf )
{
wxString filenames;
{
if (m_pictHandle != NULL)
{
+#ifndef __LP64__
if (m_pictCreated)
KillPicture( (PicHandle)m_pictHandle );
+#endif
m_pictHandle = NULL;
}
// ownership is transferred to the bitmap
m_pictCreated = false;
+#ifndef __LP64__
Rect frame;
wxMacGetPictureBounds( picHandle, &frame );
-
+#if wxUSE_METAFILE
wxMetafile mf;
mf.SetHMETAFILE( (WXHMETAFILE)m_pictHandle );
+#endif
wxMemoryDC mdc;
m_bitmap.Create( frame.right - frame.left, frame.bottom - frame.top );
mdc.SelectObject( m_bitmap );
+#if wxUSE_METAFILE
mf.Play( &mdc );
+#endif
mdc.SelectObject( wxNullBitmap );
+#endif
return m_bitmap.Ok();
}