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

📄 activebu.h

📁 支持Windows 3.x、Windows 9x平台上的中文(GB、Big5)、日文(Shift JIS、EUC JIS)、韩文(KS C 5601)、HZ码的显示与输入,智能内码识别
💻 H
字号:
// activebu.h : header file
//
//动作按钮类                                                                           

#define	MAX_FILE_NAME_LEN	100

/////////////////////////////////////////////////////////////////////////////
// CActiveButton window

class CActiveButton : public CBasicButton
{
// Construction
public:
	CActiveButton();

	// Attributes
	private:
		char		m_sExeFileName[MAX_FILE_NAME_LEN+1] ;
		HICON	m_hIcon ;
		
		int			m_nLeftButtonStatus ;	//左鼠标键状态
											//0没有按下,1按下但没有移动,2按下
											//并且已经移动
		BOOL	m_bButtonStatus ;	//本按钮状态,0下,1上											
		CPoint	m_OldDownPoint ;	//鼠标左键按下时的位置

	// Operations
	public:
		BOOL	InitButton( 	LPCSTR 	lpcsName , 	//窗口名称
									const RECT &rect ,	//窗口大小
									CWnd 	*pParent ,	//父窗口
									UINT	uWinID ,	//窗口ID
									LPCSTR lpcsExeFileName ) ;	//执行文件名		
		void		GetName( LPSTR lpsName ) ;	//得到按钮名称
// Implementation
public:
	virtual ~CActiveButton();

protected:
	// Generated message map functions
	//{{AFX_MSG(CActiveButton)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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