xbutton.h

来自「Under CE4.2 view bitmap with shrink and 」· C头文件 代码 · 共 63 行

H
63
字号
#ifndef _XBUTTON_H__
#define _XBUTTON_H__

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

/////////////////////////////////////////////////////////////////////////////
// CXButton window

class CXButton : public CStatic
{
public:
	void LoadBitmaps(UINT nUP, UINT nDown,UINT nDisabled=0);
	void Show();
	void Hide();
protected:
 
// Construction
public:
	CXButton();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CXButton)
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
//sparrow modify for compile
//	void SetToolTip(TCHAR *szTipText=L"",int nMaxWidth=100);	
	//v1.08_begin
//	void SetToolTip(UINT nID, int nMaxWidth=200);
	//v1.08_end
//sparrow modify for compile
	BOOL isUp();
	virtual ~CXButton();

    static HWND m_hWndToolTip;
	// Generated message map functions
protected:
	//{{AFX_MSG(CXButton)
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	BOOL	m_bDown,m_bUp;
	UINT	m_nImageUp,m_nImageDown,m_nImageDisabled;
	HDC		m_hMemDC;
};

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

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

#endif // _XBUTTON_H__

⌨️ 快捷键说明

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