bitmapbtn.h

来自「串口的读写」· C头文件 代码 · 共 36 行

H
36
字号
#pragma once


/////////////////////////////////////////////////////////////////////////////
// CZBitmap window
class CZBitmap : public CBitmapButton
{
// Construction
public:
	CZBitmap();
	virtual ~CZBitmap();

protected:
	BOOL m_bDown;
	CToolTipCtrl m_ToolTip;			// Tooltip

	// Generated message map functions
protected:
	//{{AFX_MSG(CZBitmap)
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	void InitToolTip();
public:
	void SetTooltipText(int nText, BOOL bActivate = TRUE);
	void SetTooltipText(LPCTSTR lpszText, BOOL bActivate = TRUE);
	void ActivateTooltip(BOOL bEnable = TRUE);

public:
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
};

⌨️ 快捷键说明

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