1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #if !defined(AFX_SKINSTATIC_H__8008CAA3_1EE3_4F71_A6B7_976421CC0915__INCLUDED_)
- #define AFX_SKINSTATIC_H__8008CAA3_1EE3_4F71_A6B7_976421CC0915__INCLUDED_
- #include "EnBitmap.h" // Added by ClassView
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // SkinStatic.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CSkinStatic window
- #include "EnBitmap.h"
- class CSkinStatic : public CStatic
- {
- public:
- CSkinStatic();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- protected:
- virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
- // Implementation
- public:
- void SetText(CString strText,int nStart,COLORREF cr);
- void SetExtendPoint(int nX,int nY){m_nX=nX;m_nY=nY;}
- BOOL DrawText(CDC *pDC,CRect rc ,CString strText);
- CEnBitmap m_bmpStatic;
- CString m_strText;
- int m_nTextStart;
- COLORREF m_crText;
- virtual ~CSkinStatic();
- void LoadBitmap(LPCTSTR szImagePath);
- // Generated message map functions
- protected:
- //{{AFX_MSG(CSkinStatic)
- afx_msg void OnPaint();
- //}}AFX_MSG
- int m_nX,m_nY;
- DECLARE_MESSAGE_MAP()
- };
- #endif // !defined(AFX_SKINSTATIC_H__8008CAA3_1EE3_4F71_A6B7_976421CC0915__INCLUDED_)
|