The sample code was complicated by having USE_STATIC_BITMAP and using wxStaticBitmap or wxBitmapButton depending on it. Neither important for a wxStatusBar sample so just use wxStaticBitmap always and make the code simpler and more readable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775