StateButton.h 664 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #include "afxwin.h"
  3. #include "StateBtnGroup.h"
  4. class CStateButton :
  5. public CButton
  6. {
  7. DECLARE_DYNAMIC(CStateButton);
  8. public:
  9. CStateButton();
  10. public:
  11. ~CStateButton();
  12. public:
  13. CWnd* pParent;
  14. UINT index;
  15. CString name;
  16. CString amount;
  17. CString vol;
  18. CString price;
  19. UINT state;
  20. CString strInfo;
  21. UINT type;
  22. UINT btnState;
  23. UINT colorState;
  24. UINT lastColorState;
  25. UINT chooseState;
  26. protected:
  27. afx_msg void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  28. public:
  29. void drawButton();
  30. void drawlines(CDC* pDC, CString str, CRect rc, UINT charNumOfLine, UINT linenum, UINT rowHeight);
  31. void changeColor(bool change);
  32. DECLARE_MESSAGE_MAP()
  33. };