123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- #include "afxwin.h"
- #include "StateBtnGroup.h"
- class CStateButton :
- public CButton
- {
- DECLARE_DYNAMIC(CStateButton);
- public:
- CStateButton();
- public:
- ~CStateButton();
- public:
- CWnd* pParent;
- UINT index;
- CString name;
- CString amount;
- CString vol;
- CString price;
- UINT state;
- CString strInfo;
- UINT type;
- UINT btnState;
- UINT colorState;
- UINT lastColorState;
- UINT chooseState;
- protected:
- afx_msg void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- public:
- void drawButton();
- void drawlines(CDC* pDC, CString str, CRect rc, UINT charNumOfLine, UINT linenum, UINT rowHeight);
- void changeColor(bool change);
- DECLARE_MESSAGE_MAP()
- };
|