// macors
// ---------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
-#endif
// ===========================================================================
// implementation
{
LPDRAWITEMSTRUCT lpDIS = (LPDRAWITEMSTRUCT) item;
- wxBitmap* bitmap = m_image.bitmap;
+ wxCHECK_MSG( !m_isIcon, FALSE, _T("icons not supported in wxStaticBitmap") );
+
+ wxBitmap* bitmap = (wxBitmap *)m_image;
if ( !bitmap->Ok() )
return FALSE;