BOOL CView::OnNextPaneCmd(UINT nID) { CSplitterWnd* pSplitter = GetParentSplitter(this, FALSE); if (pSplitter == NULL) return FALSE; ASSERT(nID == ID_NEXT_PANE || nID == ID_PREV_PANE); pSplitter->ActivateNext(nID == ID_PREV_PANE); return TRUE; }
/** * @brief Change active pane in diff pane */ void CMergeDiffDetailView::OnChangePane() { CSplitterWnd *pSplitterWnd = GetParentSplitter(this, FALSE); pSplitterWnd->ActivateNext(); }