- Code: Select all
case wxFNB_X:
{
wxFlatNotebookEvent event(wxEVT_COMMAND_FLATNOTEBOOK_PAGE_CLOSING, GetParent()->GetId());
event.SetSelection(m_iActivePage);
event.SetEventObject(GetParent());
GetParent()->GetEventHandler()->ProcessEvent(event);
DeletePage((size_t)m_iActivePage);
break;
}
to this:
- Code: Select all
case wxFNB_X:
{
DeletePage((size_t)m_iActivePage);
break;
}