basebutton.h

来自「用VC++编写的汽配管理系统,实用简单,程序简单模块化」· C头文件 代码 · 共 54 行

H
54
字号
#if !defined(AFX_BASEBUTTON_H__DC880CB1_F48D_4976_90BF_21D60C143DA4__INCLUDED_)
#define AFX_BASEBUTTON_H__DC880CB1_F48D_4976_90BF_21D60C143DA4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CBaseButton window

class CBaseButton : public CButton
{
// Construction
public:
	CBaseButton(UINT NomalPic=IDB_BUT_UP,UINT DownPic=IDB_BUT_DOWN,UINT EnablePic=IDB_BUT_ENABLED);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBaseButton)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	bool Drawit(CDC* pDC,UINT ResID);
	virtual ~CBaseButton();

	// Generated message map functions
protected:
	//{{AFX_MSG(CBaseButton)
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	UINT m_DownPic;
	UINT m_NomalPic;
	UINT m_EnablePic;

};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BASEBUTTON_H__DC880CB1_F48D_4976_90BF_21D60C143DA4__INCLUDED_)

⌨️ 快捷键说明

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