You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
981 B
C++
39 lines
981 B
C++
#pragma once
|
|
|
|
enum EPicType
|
|
{
|
|
_EPicType_1 = 0,
|
|
_EPicType_2,
|
|
_EPicType_3,
|
|
_EPicType_4,
|
|
};
|
|
|
|
|
|
|
|
class CMyPictrueBttom : public CMFCButton
|
|
{
|
|
DECLARE_DYNAMIC(CMyPictrueBttom)
|
|
public:
|
|
CMyPictrueBttom();
|
|
virtual ~CMyPictrueBttom();
|
|
void Refresh();
|
|
void SetPictrueByBool(bool b);
|
|
void SetCurPicType(EPicType t);
|
|
void SetPictrueId1(int id){m_PictrueId1 = id;};
|
|
void SetPictrueId2(int id){m_PictrueId2 = id;};
|
|
void SetPictrueId3(int id){m_PictrueId3 = id;};
|
|
void SetPictrueId4(int id){m_PictrueId4 = id;};
|
|
protected:
|
|
DECLARE_MESSAGE_MAP()
|
|
afx_msg BOOL PreTranslateMessage(MSG* pMsg);
|
|
private:
|
|
CFont m_font;
|
|
EPicType m_CurPicType;//µ±Ç°µÄÀàÐÍ
|
|
int m_PictrueId1;
|
|
int m_PictrueId2;
|
|
int m_PictrueId3;
|
|
int m_PictrueId4;
|
|
};
|
|
|
|
|