lensbutton.cpp

来自「vc++写的云台控制系统程序,程序内有说明,在编译本章程序后」· C++ 代码 · 共 50 行

CPP
50
字号
// MirrorButton.cpp : implementation file
//

#include "stdafx.h"
#include "cradle.h"
#include "LensButton.h"
#include "cradleDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CLensButton

CLensButton::CLensButton()
{
}

CLensButton::~CLensButton()
{
}


BEGIN_MESSAGE_MAP(CLensButton, CButton)
	//{{AFX_MSG_MAP(CLensButton)
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLensButton message handlers

void CLensButton::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	((CCoudDlg*)GetParent())->OnMirActDown(this->GetDlgCtrlID());
	CButton::OnLButtonDown(nFlags, point);
}

void CLensButton::OnLButtonUp(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	((CCoudDlg*)GetParent())->OnActUp(this->GetDlgCtrlID());		
	CButton::OnLButtonUp(nFlags, point);
}

⌨️ 快捷键说明

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