rtbutton.h
来自「vc++编写的界面源代码,对C++爱好者是很发的帮助。」· C头文件 代码 · 共 52 行
H
52 行
#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 + =
减小字号Ctrl + -
显示快捷键?