- m_pictCreated = false ;
- Rect frame = (**picHandle).picFrame ;
-
- wxMetafile mf ;
- mf.SetHMETAFILE( (WXHMETAFILE) m_pictHandle ) ;
- wxMemoryDC mdc ;
- m_bitmap.Create( frame.right - frame.left ,frame.bottom - frame.top ) ;
- mdc.SelectObject(m_bitmap ) ;
- mf.Play( &mdc ) ;
- mdc.SelectObject( wxNullBitmap ) ;
-
+ m_pictCreated = false;
+ Rect frame;
+ wxMacGetPictureBounds( picHandle, &frame );
+
+ wxMetafile mf;
+ mf.SetHMETAFILE( (WXHMETAFILE)m_pictHandle );
+ wxMemoryDC mdc;
+ m_bitmap.Create( frame.right - frame.left, frame.bottom - frame.top );
+ mdc.SelectObject( m_bitmap );
+ mf.Play( &mdc );
+ mdc.SelectObject( wxNullBitmap );
+