IMPLEMENT_DYNAMIC_CLASS(wxStatusBar, wxWindow)
-#include <wx/arrimpl.cpp> // This is a magic incantation which must be done!
+#include "wx/arrimpl.cpp" // This is a magic incantation which must be done!
WX_DEFINE_OBJARRAY(wxStatusBarPaneArray);
{
// notify the frame that it doesn't have a status bar any longer to avoid
// dangling pointers
- wxFrame *frame = dynamic_cast<wxFrame*>(GetParent());
+ wxFrame *frame = wxDynamicCast(GetParent(), wxFrame);
if ( frame && frame->GetStatusBar() == this )
frame->SetStatusBar(NULL);
}