m_bitmapMask = NULL;
m_hBitmap = NULL ;
m_hPict = NULL ;
+ m_hIcon = NULL ;
m_bitmapType = kMacBitmapTypeUnknownType ;
}
}
}
break ;
+ case kMacBitmapTypeIcon :
+ if ( m_hIcon )
+ {
+ DisposeCIcon( m_hIcon ) ;
+ m_hIcon = NULL ;
+ }
+
default :
// unkown type ?
break ;
{
M_BITMAPDATA->m_bitmapType = kMacBitmapTypeGrafWorld ;
M_BITMAPDATA->m_hBitmap = bmp ;
- M_BITMAPDATA->m_ok = (M_BITMAPDATA->m_hBitmap != NULL ) ;
+ M_BITMAPDATA->m_ok = (M_BITMAPDATA->m_hBitmap != NULL ) ;
}
bool wxBitmap::LoadFile(const wxString& filename, long type)
// Create mask
if ( image.HasMask() ) {
-// SetMask(new wxMask( maskBitmap ));
+ SetMask(new wxMask( maskBitmap ));
}
UnlockPixels( GetGWorldPixMap(GetHBITMAP()) );