EVT_NAVIGATION_KEY(wxNotebook::OnNavigationKey)
END_EVENT_TABLE()
-IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxBookCtrlBase)
-
// ============================================================================
// implementation
// ============================================================================
//
void wxNotebook::Init()
{
- m_imageList = NULL;
m_nTabSize = 0;
} // end of wxNotebook::Init
, int nImage
)
{
- wxBitmap vBitmap = (wxBitmap)m_imageList->GetBitmap(nImage);
+ wxBitmap vBitmap = (wxBitmap)GetImageList()->GetBitmap(nImage);
return (bool)::WinSendMsg( GetHWND()
,BKM_SETTABBITMAP
pPage->Show(false);
}
- //
- // Some page should be selected: either this one or the first one if there is
- // still no selection
- //
- int nSelNew = wxNOT_FOUND;
-
- if (bSelect)
- nSelNew = nPage;
- else if ( m_selection == wxNOT_FOUND )
- nSelNew = 0;
-
- if (nSelNew != wxNOT_FOUND)
- SetSelection(nSelNew);
+ DoSetSelectionAfterInsertion(nPage, bSelect);
InvalidateBestSize();