64 lines
1.5 KiB
C
64 lines
1.5 KiB
C
|
#if !defined(AFX_BMPBUTTON_H__51DE661D_332B_46B1_B7DF_5C56205F803B__INCLUDED_)
|
||
|
#define AFX_BMPBUTTON_H__51DE661D_332B_46B1_B7DF_5C56205F803B__INCLUDED_
|
||
|
|
||
|
#if _MSC_VER > 1000
|
||
|
#pragma once
|
||
|
#endif // _MSC_VER > 1000
|
||
|
// BmpButton.h : header file
|
||
|
//
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CBmpButton window
|
||
|
|
||
|
class CBmpButton : public CButton
|
||
|
{
|
||
|
private:
|
||
|
CDC m_NormalDC;
|
||
|
CDC m_DownDC;
|
||
|
CDC m_DisableDC;
|
||
|
|
||
|
int m_InitDC;
|
||
|
int m_Status;
|
||
|
int m_ButType;
|
||
|
// Construction
|
||
|
public:
|
||
|
CBmpButton();
|
||
|
|
||
|
// Attributes
|
||
|
public:
|
||
|
|
||
|
// Operations
|
||
|
public:
|
||
|
|
||
|
// Overrides
|
||
|
// ClassWizard generated virtual function overrides
|
||
|
//{{AFX_VIRTUAL(CBmpButton)
|
||
|
public:
|
||
|
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
|
||
|
protected:
|
||
|
virtual void PreSubclassWindow();
|
||
|
//}}AFX_VIRTUAL
|
||
|
|
||
|
// Implementation
|
||
|
public:
|
||
|
void SetButType(int nType);
|
||
|
void LoadBitmaps(UINT nIDBitmapResource,UINT nIDBitmapResourceSel = 0,UINT nIDBitmapResourceDisabled = 0 );
|
||
|
virtual ~CBmpButton();
|
||
|
|
||
|
// Generated message map functions
|
||
|
protected:
|
||
|
//{{AFX_MSG(CBmpButton)
|
||
|
afx_msg void OnPaint();
|
||
|
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
|
||
|
//}}AFX_MSG
|
||
|
|
||
|
DECLARE_MESSAGE_MAP()
|
||
|
};
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
//{{AFX_INSERT_LOCATION}}
|
||
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||
|
|
||
|
#endif // !defined(AFX_BMPBUTTON_H__51DE661D_332B_46B1_B7DF_5C56205F803B__INCLUDED_)
|