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

📄 mybitmapbutton.cpp

📁 云台控制系统
💻 CPP
字号:
// MyBitmapButton.cpp : implementation file
//

#include "stdafx.h"
#include "cradle.h"
#include "MyBitmapButton.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -