m_panel->SetSizer(m_sizerFrame);
- m_sizerFrame->Fit(this);
m_sizerFrame->SetSizeHints(this);
Centre(wxBOTH);
void MyFrame::OnType(wxCommandEvent& event)
{
- m_type = wx_static_cast(BookType, event.GetId() - ID_BOOK_NOTEBOOK);
+ m_type = static_cast<BookType>(event.GetId() - ID_BOOK_NOTEBOOK);
if ( m_bookCtrl )
m_sizerFrame->Hide(m_bookCtrl);
// NB: can't use wxStaticCast here as wxBookCtrlBase is not in
// wxRTTI
const wxBookCtrlBase * const
- book = wx_static_cast(wxBookCtrlBase *, event.GetEventObject());
+ book = static_cast<wxBookCtrlBase *>(event.GetEventObject());
if ( idx != wxNOT_FOUND &&
book && book->GetPageText(idx) == VETO_PAGE_NAME )
{