www.pudn.com > LrcMaker.zip > LyricStatic.h
#if !defined(AFX_LYRICSTATIC_H__8C4B23D3_E6A5_485F_8E2B_61CA413576B0__INCLUDED_)
#define AFX_LYRICSTATIC_H__8C4B23D3_E6A5_485F_8E2B_61CA413576B0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LyricStatic.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CLyricStatic window
class CLyricStatic : public CStatic
{
// Construction
public:
CLyricStatic();
// Attributes
public:
WORD m_nZoomIn;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLyricStatic)
//}}AFX_VIRTUAL
// Implementation
public:
void DrawText( CPaintDC *pDC, TCHAR * wsText );
int SetText(TCHAR *pText, BOOL bRepaint);
int DrawASCII( CPaintDC *pDC, WCHAR ch, INT x, INT y );
int DrawHanzi( CPaintDC *pDC, WCHAR ch, INT x, INT y );
void DrawPoint(CDC *pDc, INT x, INT y, COLORREF color);
void ZoomIn(WORD zoomIn)
{
m_nZoomIn = zoomIn;
}
COLORREF m_BackColor;
COLORREF m_TextColor;
CBrush m_BackBrush;
TCHAR * m_strText;
virtual ~CLyricStatic();
// Generated message map functions
protected:
//{{AFX_MSG(CLyricStatic)
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LYRICSTATIC_H__8C4B23D3_E6A5_485F_8E2B_61CA413576B0__INCLUDED_)