#include <stdio.h>
// ---------------------------------------------------------------------------
-// macors
+// macros
// ---------------------------------------------------------------------------
+wxBEGIN_EVENT_TABLE(wxStaticBitmap, wxStaticBitmapBase)
+ EVT_SIZE(wxStaticBitmap::WXHandleSize)
+wxEND_EVENT_TABLE()
+
// ===========================================================================
// implementation
// ===========================================================================
return size;
}
+void wxStaticBitmap::WXHandleSize(wxSizeEvent& event)
+{
+ // Invalidate everything when our size changes as the image position (it's
+ // drawn centred in the window client area) changes.
+ Refresh();
+
+ event.Skip();
+}
+
#ifndef __WXWINCE__
void wxStaticBitmap::DoPaintManually(wxPaintEvent& WXUNUSED(event))