CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext& dc) const
{
CFrameWnd::Dump(dc);
}
#endif //_DEBUG
/
// CMainFrame message handlers
void CMainFrame::OnViewStatusBar()
{
// TODO: Add your command handler code here
m_wndStatusBar.ShowWindow((m_wndStatusBar.GetStyle()&WS_VISIBLE)==0);
RecalcLayout();
}
void CMainFrame::OnUpdateViewStatusBar(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
pCmdUI->SetCheck((m_wndStatusBar.GetStyle()&WS_VISIBLE)!=0);
pCmdUI->SetCheck(m_wndStatusBar.ShowWindow(m_wndStatusBar.GetStyle()));
}
void CMainFrame::ActivateFrame(int nCmdShow)
// TODO: Add your specialized code here and/or call the base class
m_wndSplitter.SetActivePane(0,1,NULL);
nCmdShow=SW_MAXIMIZE;
CFrameWnd::ActivateFrame(nCmdShow);
}
void CMainFrame::OnClose()
{
// TODO: Add your message handler code here and/or call default
CPlayView* pView=(CPlayView*)GetActiveView();
pView->SendMessage(WM_PREPARE_CLOSE);
::WaitForSingleObject(g_eventClearup,0);
CFrameWnd::OnClose();
}