Exemplo n.º 1
0
void wxAuiMDIParentFrame::DoHandleMenu(wxCommandEvent& event)
{
    switch (event.GetId())
    {
    case wxWINDOWCLOSE:
        if (m_pActiveChild)
            m_pActiveChild->Close();
        break;
    case wxWINDOWCLOSEALL:
        while (m_pActiveChild)
        {
            if (!m_pActiveChild->Close())
            {
                return; // failure
            }
        }
        break;
    case wxWINDOWNEXT:
        ActivateNext();
        break;
    case wxWINDOWPREV:
        ActivatePrevious();
        break;
    default:
        event.Skip();
    }
}
Exemplo n.º 2
0
void wxGenericMDIParentFrame::OnWindowMenu(wxCommandEvent &event)
{
    switch ( event.GetId() )
    {
        case wxWINDOWCLOSE:
            if ( m_currentChild )
                m_currentChild->Close();
            break;

        case wxWINDOWCLOSEALL:
            CloseAll();
            break;

        case wxWINDOWNEXT:
            ActivateNext();
            break;

        case wxWINDOWPREV:
            ActivatePrevious();
            break;

        default:
            event.Skip();
    }
}
void COXSplitterWnd::DeleteView(int row, int col)
{
	ASSERT_VALID(this);

	// if active child is being deleted - activate next
	CWnd* pPane=GetPane(row,col);
	ASSERT_VALID(pPane);
	if(GetActivePane()==pPane)
	{
		ActivateNext(FALSE);
	}

	// default implementation assumes view will auto delete in PostNcDestroy
	pPane->DestroyWindow();
}
Exemplo n.º 4
0
//---------------------------------------------------------
void CSAGA_Frame::On_Frame_Next(wxCommandEvent &WXUNUSED(event))
{
	ActivateNext();
}