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

📄 mybutton.h

📁 VC++ 6.0写ADO数据库操作对初学者有一定帮助
💻 H
字号:
#if !defined(AFX_MYBUTTON_H__7B1ADD1B_B171_42E6_94A7_19CE3C9EC05F__INCLUDED_)
#define AFX_MYBUTTON_H__7B1ADD1B_B171_42E6_94A7_19CE3C9EC05F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Mybutton.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// Mybutton window

class Mybutton : public CButton
{
// Construction
public:
	Mybutton();
	

// Attributes
public:

// Operations
public:
 int nx;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(Mybutton)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);

	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL OnInitDialog();

	BOOL EnableWindow(BOOL m_bo);
	BOOL m_bomove;
	void LoadBitmap1(UINT downbit,UINT upbit);
	void SetupRegion(CDC *pDC);
	BOOL m_bodown;
	CBitmap m_map,m_map2,m_map3,m_mapall;
	CBitmap m_mapa,m_mapb,m_mapc;
	void SetTextColor(COLORREF color);

	COLORREF m_color;
	CBrush m_brush,m_brush2;
	void SetBackColor(COLORREF color);
	virtual ~Mybutton();

	// Generated message map functions
protected:
	//{{AFX_MSG(Mybutton)
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg UINT OnGetDlgCode();

	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_MYBUTTON_H__7B1ADD1B_B171_42E6_94A7_19CE3C9EC05F__INCLUDED_)

⌨️ 快捷键说明

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