⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ptzbutton.cpp

📁 MPEG4网络视频服务器客户端图象监控软件
💻 CPP
字号:
// PtzButton.cpp : implementation file
//

#include "stdafx.h"
#include "dvsuser.h"
#include "PtzButton.h"

#include "DlgDeviceCtrl.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPtzButton
//----------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------
CPtzButton::CPtzButton()
{
	bPress = TRUE;
}
//----------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------
CPtzButton::~CPtzButton()
{
}
//----------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------
BEGIN_MESSAGE_MAP(CPtzButton, CButton)
	//{{AFX_MSG_MAP(CPtzButton)
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	ON_WM_KEYDOWN()
	ON_WM_KEYUP()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//----------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------
void CPtzButton::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	pParent->PtzDown(this);
	CButton::OnLButtonDown(nFlags, point);
}
//----------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------
void CPtzButton::OnLButtonUp(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	pParent->PtzUp(this);
	CButton::OnLButtonUp(nFlags, point);
}
//----------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------
void CPtzButton::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default
//	if(bPress)
//	{
//		bPress = FALSE;
//		pParent->PtzDown(this);
//	}
	CButton::OnKeyDown(nChar, nRepCnt, nFlags);
}
//----------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------
void CPtzButton::OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default
//	bPress = TRUE;
//
//	pParent->PtzUp(this);
	CButton::OnKeyUp(nChar, nRepCnt, nFlags);
}
//----------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -