红色为报错的语句,完全不知道错在什么地方,大家帮我看看,谢谢
Winfrm.ccp
Void CFrameWnd::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
CWnd::OnActivate(nState, pWndOther, bMinimized);
// get top level frame unless this is a child window
// determine if window should be active or not
CFrameWnd* pTopLevel = (GetStyle() & WS_CHILD) ? this : GetTopLevelFrame();
CWnd* pActive = (nState == WA_INACTIVE ? pWndOther : this);
BOOL bStayActive = (pActive != NULL) ?
(pTopLevel == pActive->GetTopLevelFrame() &&
pActive->SendMessage(WM_FLOATSTATUS, FS_SYNCACTIVE) != 0)))
pTopLevel->m_nFlags &= ~WF_STAYACTIVE;
pTopLevel->m_nFlags |= WF_STAYACTIVE;
// sync floating windows to the new state
NotifyFloatingWindows(bStayActive ? FS_ACTIVATE : FS_DEACTIVATE);
// get active view (use active frame if no active view)
CView* pActiveView = GetActiveView();
pActiveView = GetActiveFrame()->GetActiveView();
// when frame gets activated, re-activate current view
if (nState != WA_INACTIVE && !bMinimized)
pActiveView->OnActivateView(TRUE, pActiveView, pActiveView);
// always notify the view of frame activations
pActiveView->OnActivateFrame(nState, this);
}
Winfrm.ccp |