Example #1
0
BOOL CDlgRender::OnCommand(WPARAM wParam, LPARAM lParam)
{
	WORD wID = (WORD)wParam;
	switch(wID)
	{
	case POP_MENU_RECORDING:
		{
			if(mChannelId > 0)
			{
				channelStatus.recording =
					(channelStatus.recording ==0x00?0x01:0x00);
				if (channelStatus.recording == 0x01)
				{
					EasyPlayer_StartManuRecording(mChannelId);
				}
				else
				{
					EasyPlayer_StopManuRecording(mChannelId);
				}
			}
		}
		break;
	default:
		break;
	}

	return CDialogEx::OnCommand(wParam,lParam);
}
Example #2
0
BOOL CDlgRender::OnCommand(WPARAM wParam, LPARAM lParam)
{
	WORD	wID = (WORD)wParam;
	switch (wID)
	{
	case POP_MENU_RECORDING:
		{
			//channelStatus.recording = (channelStatus.recording==0x00?0x01:0x00);
			if (mChannelId > 0)
			{
				channelStatus.recording = (channelStatus.recording==0x00?0x01:0x00);

				if (channelStatus.recording == 0x01)			EasyPlayer_StartManuRecording(mChannelId);
				else											EasyPlayer_StopManuRecording(mChannelId);
			}
		}
		break;
	case	POP_MENU_Stop:
		{
			if (mChannelId > 0)
			{
				if (m_pMainDlg)
				{
					m_pMainDlg->Preview();
				}			
			}
		}
		break;
	case POP_MENU_SHOT:
		{
			if (mChannelId > 0)
			{
				EasyPlayer_StartManuPicShot(mChannelId);
				// 				channelStatus.shoting = (channelStatus.shoting==0x00?0x01:0x00);
				// 
				// 				if (channelStatus.shoting == 0x01)			EasyPlayer_StartManuPicShot(mChannelId);
				// 				else											EasyPlayer_StopManuPicShot(mChannelId);
			}
		}

	default:
		break;
	}


	return CDialogEx::OnCommand(wParam, lParam);
}