pictbutton.cpp

来自「云台根据其回转的特点可分为只能左右旋转的水平旋转云台和既能左右旋转又能上下旋转的」· C++ 代码 · 共 57 行

CPP
57
字号
// MyBitmapButton.cpp : implementation file
//

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

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

/////////////////////////////////////////////////////////////////////////////
// PICTButton

PICTButton::PICTButton()
{
}

PICTButton::~PICTButton()
{
}


BEGIN_MESSAGE_MAP(PICTButton, CBitmapButton)
	//{{AFX_MSG_MAP(PICTButton)
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// PICTButton message handlers

//DEL BOOL PICTButton::OnCommand(WPARAM wParam, LPARAM lParam) 
//DEL {
//DEL 	// TODO: Add your specialized code here and/or call the base class
//DEL 	
//DEL 	return CBitmapButton::OnCommand(wParam, lParam);
//DEL }

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

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

⌨️ 快捷键说明

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