bxselbtn.h

来自「ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - 」· C头文件 代码 · 共 77 行

H
77
字号
/////////////////////////////////////////////////////////////////////////////
// BXSelBtn.h : header file
// 
// Windows 2000 / Office 2000 style file dialog.
// 
// This WILL work on Win 95 / 98 / NT 4 / NT 5 (2000) / WinME
// 
/////////////////////////////////////////////////////////////////////////////

#if !defined(__BXSelBtn_H__)
#define __BXSelBtn_H__

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

// BXSelBtn.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// BXSelBtn window

class BXSelBtn : public CWnd
{
// Construction
public:
	BXSelBtn();

// Attributes
public:
  BOOL Create( LPCTSTR lpszCaption, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CImageList* pImage, UINT nPos );

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(BXSelBtn)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetState(BOOL bPressed);
	BOOL SetImage(UINT nId, COLORREF crMask);
	virtual ~BXSelBtn();
	CBitmap      m_btnImage;
	CImageList*   m_pIL;
	BOOL         m_bLoaded;
	BITMAP       m_bm;
	CWnd*        m_pParentWnd;
	BOOL		   m_Pressed;
	UINT         m_nPos;
	CString      m_strText;
	UINT         m_nID;

	BOOL			m_MouseOnButton;
	BOOL			m_DrawPressed;
	BOOL			m_Enabled;

	// Generated message map functions
protected:
	//{{AFX_MSG(BXSelBtn)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(__BXSelBtn_H__)

⌨️ 快捷键说明

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