/
// CPlayView construction/destruction
//响应WM_CAPTURE_STOP消息,采集大小到,停止采集
LRESULT CPlayView::OnCaptureStop(WPARAM wParam, LPARAM lParam)
{
//停止采集
OnStopCapture();
MessageBox("采集数量到,停止采集");
//采集大小标志置为FALSE
m_SizeCheck=FALSE;
return 0;
}
LRESULT CPlayView::OnOutbarNotify(WPARAM wParam, LPARAM lParam)
{
CMainFrame* pFrame=(CMainFrame*)AfxGetApp()->m_pMainWnd;
switch (wParam)
{
case NM_OB_ITEMCLICK:
{
int nFolder =pFrame->m_wndOutlookBar.GetSelFolder();
int nIndex = (int)lParam;
switch (nFolder)
{
case PLAY:
{
switch (nIndex)
{
case Play_Set:
break;
case Play_Open:
OnOpenPlayfile();
break;
case Play_Begin:
OnPlayfile();
break;
case Play_Pause:
pVideoPlay->PausePlay();
KillTimer(ID_TIMER);
pFrame->m_wndStatusBar.SetPaneText(0,"暂停");
break;
case Play_Resume:
pVideoPlay->ResumePlay();
SetTimer(ID_TIMER,1000,NULL);
pFrame->m_wndStatusBar.SetPaneText(0,"播放");
break;
case Play_Stop:
OnFileStop();
break;
}
}
break;
case CAPTURE: // Management folder is selected...
{
switch (nIndex)
{
case Cap_Preview:
OnRealplay();
break;
case Cap_Set:
OnCaptureSave();
break;
case Cap_Begin:
OnBeginCapture();
break;
case Cap_Stop:
OnStopCapture();
break;
}
}
break;
}
}
}
return 0;
}