资源简介
仅供学习 c++视频监控系统 很全的代码 完全可用

代码片段和文件信息
// Autodlg.cpp : implementation file
//
#include “stdafx.h“
#include “capture.h“
#include “Autodlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAutodlg dialog
CAutodlg::CAutodlg(CWnd* pParent /*=NULL*/)
: CDialog(CAutodlg::IDD pParent)
{
//{{AFX_DATA_INIT(CAutodlg)
//}}AFX_DATA_INIT
}
void CAutodlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAutodlg)
DDX_Control(pDX IDC_DATETIMEPICKER2 m_StopTime);
DDX_Control(pDX IDC_DATETIMEPICKER1 m_StartTime);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAutodlg CDialog)
//{{AFX_MSG_MAP(CAutodlg)
ON_BN_CLICKED(IDC_OK OnOk)
ON_BN_CLICKED(IDC_AMPLITUDE OnAmplitude)
ON_BN_CLICKED(IDC_HORIZONTAL OnHorizontal)
ON_BN_CLICKED(IDC_VERTICAL OnVertical)
ON_BN_CLICKED(IDC_TIMECHECK OnTimecheck)
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAutodlg message handlers
BOOL CAutodlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
CButton* pButton = (CButton*)GetDlgItem(IDC_AMPLITUDE);
pButton->SetCheck(1);
m_Num = 0;
m_Time = FALSE;
m_Count = FALSE;
GetDlgItem(IDC_DATETIMEPICKER1)->EnableWindow(FALSE);
GetDlgItem(IDC_DATETIMEPICKER2)->EnableWindow(FALSE);
SetTimer(11000NULL);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CAutodlg::OnOk()
{
// TODO: Add your control notification handler code here
CDialog::OnOK();
}
void CAutodlg::OnAmplitude()
{
// TODO: Add your control notification handler code here
CButton* pAButton = (CButton*)GetDlgItem(IDC_AMPLITUDE);
pAButton->SetCheck(1);
CButton* pHButton = (CButton*)GetDlgItem(IDC_HORIZONTAL);
pHButton->SetCheck(0);
CButton* pVButton = (CButton*)GetDlgItem(IDC_VERTICAL);
pVButton->SetCheck(0);
m_Num = 0;
CTime m_LogTime = CTime::GetCurrentTime();
CString strText;
strText.Format(“%s\t%s\t设置广角监控\r\n“m_UserName
m_LogTime.Format(“%y-%m-%d %H:%M:%S“));
CFile file;
file.Open(m_LogPathCFile::modeWrite);
file.SeekToEnd();
file.Write(strTextstrText.GetLength());
file.Close();
}
void CAutodlg::OnHorizontal()
{
// TODO: Add your control notification handler code here
CButton* pAButton = (CButton*)GetDlgItem(IDC_AMPLITUDE);
pAButton->SetCheck(0);
CButton* pHButton = (CButton*)GetDlgItem(IDC_HORIZONTAL);
pHButton->SetCheck(1);
CButton* pVButton = (CButton*)GetDlgItem(IDC_VERTICAL);
pVButton->SetCheck(0);
m_Num = 1;
CTime m_LogTime = CTime::GetCurrentTime();
CString strText;
strText.Format(“%s\t%s\t设置水平监控\r\n“m_UserName
m_LogTime.Format(“%y-%m-%d %H:%M:%S“));
CFile file;
file.Open(m_LogPathCFile::modeWrite);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2009-04-13 11:12 01\
文件 597504 2008-02-28 09:36 01\readme.doc
目录 0 2009-04-13 11:12 01\源程序\
文件 4992 2008-01-11 10:05 01\源程序\Autodlg.cpp
文件 3413 2008-04-07 08:33 01\源程序\Autodlg.dsp
文件 522 2008-04-07 08:34 01\源程序\Autodlg.dsw
文件 1671 2007-11-17 14:51 01\源程序\Autodlg.h
文件 33792 2008-04-07 08:34 01\源程序\Autodlg.ncb
文件 48640 2008-04-07 08:34 01\源程序\Autodlg.opt
文件 1284 2008-04-07 08:34 01\源程序\Autodlg.plg
文件 1969360 2008-04-07 01:31 01\源程序\Capture.aps
文件 6371 2008-04-07 09:43 01\源程序\Capture.clw
文件 8886 2007-11-17 09:54 01\源程序\Capture.cpp
文件 7837 2007-11-17 15:44 01\源程序\Capture.dsp
文件 627 2007-11-17 08:42 01\源程序\Capture.dsw
文件 1367 2007-11-09 10:23 01\源程序\Capture.h
文件 230400 2008-04-07 09:43 01\源程序\Capture.ncb
文件 577024 2008-04-07 09:43 01\源程序\Capture.opt
文件 878 2008-04-07 09:43 01\源程序\Capture.plg
文件 17044 2008-01-11 13:20 01\源程序\Capture.rc
文件 34365 2008-01-15 10:44 01\源程序\CaptureDlg.cpp
文件 4806 2008-01-15 10:41 01\源程序\CaptureDlg.h
文件 4583 2007-11-17 15:12 01\源程序\ControlForm.cpp
文件 1704 2007-11-17 14:38 01\源程序\ControlForm.h
目录 0 2009-04-13 11:12 01\源程序\Debug\
文件 1950240 2008-04-07 09:27 01\源程序\Debug\Capture.res
目录 0 2009-04-13 11:12 01\源程序\Debug\Debug\
文件 3413 2008-04-07 08:09 01\源程序\Debug\msado15.dsp
文件 522 2008-04-07 08:12 01\源程序\Debug\msado15.dsw
文件 99328 2008-04-07 08:12 01\源程序\Debug\msado15.ncb
文件 48640 2008-04-07 08:12 01\源程序\Debug\msado15.opt
............此处省略55个文件信息
相关资源
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
- c++ 画图(14Qt-XPS)
- c++多边形交并差运算
- VC++基于OpenGL模拟的一个3维空间模型
评论
共有 条评论