SkinStatic.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #if !defined(AFX_SKINSTATIC_H__8008CAA3_1EE3_4F71_A6B7_976421CC0915__INCLUDED_)
  2. #define AFX_SKINSTATIC_H__8008CAA3_1EE3_4F71_A6B7_976421CC0915__INCLUDED_
  3. #include "EnBitmap.h" // Added by ClassView
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // SkinStatic.h : header file
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CSkinStatic window
  11. #include "EnBitmap.h"
  12. class CSkinStatic : public CStatic
  13. {
  14. public:
  15. CSkinStatic();
  16. // Attributes
  17. public:
  18. // Operations
  19. public:
  20. // Overrides
  21. protected:
  22. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  23. // Implementation
  24. public:
  25. void SetText(CString strText,int nStart,COLORREF cr);
  26. void SetExtendPoint(int nX,int nY){m_nX=nX;m_nY=nY;}
  27. BOOL DrawText(CDC *pDC,CRect rc ,CString strText);
  28. CEnBitmap m_bmpStatic;
  29. CString m_strText;
  30. int m_nTextStart;
  31. COLORREF m_crText;
  32. virtual ~CSkinStatic();
  33. void LoadBitmap(LPCTSTR szImagePath);
  34. // Generated message map functions
  35. protected:
  36. //{{AFX_MSG(CSkinStatic)
  37. afx_msg void OnPaint();
  38. //}}AFX_MSG
  39. int m_nX,m_nY;
  40. DECLARE_MESSAGE_MAP()
  41. };
  42. #endif // !defined(AFX_SKINSTATIC_H__8008CAA3_1EE3_4F71_A6B7_976421CC0915__INCLUDED_)