// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
- #pragma implementation "statpict.h"
-#endif
-
+#include "wx/wxprec.h"
#include "wx/defs.h"
#include "wx/gizmos/statpict.h"
#include "wx/dcclient.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxStaticPicture, wxControl)
-#endif
-
+WXDLLIMPEXP_GIZMOS const wxChar * wxStaticPictureNameStr = wxT("staticPicture");
+
/*
* wxStaticPicture
*/
wxSize size = s ;
if ( bitmap.Ok() )
{
- if ( size.x == -1 )
+ if ( size.x == wxDefaultCoord )
size.x = bitmap.GetWidth() ;
- if ( size.y == -1 )
+ if ( size.y == wxDefaultCoord )
size.y = bitmap.GetHeight() ;
}
OriginalImage = Bitmap.ConvertToImage();
#endif
- if ( id == -1 )
+ if ( id == wxID_ANY )
m_windowId = (int)NewControlId();
else
m_windowId = id;
wxPaintDC dc( this );
PrepareDC( dc );
- dc.BeginDrawing();
wxSize sz = GetSize();
wxSize bmpsz( Bitmap.GetWidth(), Bitmap.GetHeight() );
}
else
dc.DrawBitmap( Bitmap, pos.x, pos.y );
-
- dc.EndDrawing();
}
-//WXDLLEXPORT_DATA(const wxChar *) wxStaticPictureNameStr = wxT("message");
-const wxChar * wxStaticPictureNameStr = wxT("message");