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

📄 rtbutton.h

📁 vc++编写的界面源代码,对C++爱好者是很发的帮助。
💻 H
字号:
#pragma once


// CRTButton

class CRTButton : public CButton
{
	DECLARE_DYNAMIC(CRTButton)
public:
	CRTButton();
	virtual ~CRTButton();

	typedef enum _tagDrawState
	{
		StateNormal = 0,
		StateDown = 1,
		StateFocus = 2,
		StateDisable = 3
	}DrawState;

	typedef enum _tagMouseState
	{
		MouseStateNormal = 0,
		MouseStateDown =1,
		MouseStateUp = 2
	}MouseState;

protected:
	static CBitmap* m_ButtonBitmap[5];
	static UINT     m_ButtonDrawMode[5];
	static BOOL     m_IsEnableSkin;
	DrawState       m_ButtonState;
	MouseState      m_MouseState;
public:
	static void SetButtonBitmap(CBitmap* ButtonBitmap[],UINT DrawMode[]);
	static void EnableSkin(BOOL IsEnable = TRUE);
protected:
	DECLARE_MESSAGE_MAP()
	LRESULT OnRTLButtonDown(WPARAM wParam,LPARAM lParam);
	LRESULT OnRTLButtonUp(WPARAM wParam,LPARAM lParam);
	LRESULT OnRTMouseMove(WPARAM wParam,LPARAM lParam);
	LRESULT OnRTLButtonDBClick(WPARAM wParam,LPARAM lParam);
	LRESULT OnRTMouseLeave(WPARAM wParam,LPARAM lParam);
	void    RTDrawButton(CDC *pDC);
public:
	afx_msg void OnPaint();
protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
};


⌨️ 快捷键说明

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