📄 ptzbutton.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 + -