textwnd.h
来自「数据结构(C++版)的演示程序」· C头文件 代码 · 共 67 行
H
67 行
#ifndef __TextWnd_h
#define __TextWnd_h
// TextWnd.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CTextWnd window
class CTextWnd : public CWnd
{
protected:
int m_IDC;
protected:
COLORREF m_BK_Color, m_HI_BColor, m_Text_Color, m_HI_TColor;
UINT m_X_Blank;
UINT m_X_Start, m_Blank_Num;
UINT m_Y;
UINT m_Width, m_Heigh;
CString m_Blank_String;
CBrush *m_Brush;
CRect m_Origin_Rect;
// Construction
public:
CTextWnd(int IDC);
int m_Sentence_num;
CString m_Sentence[50];
char m_Sentence_Flag[50]; //'L'亮, 'A'暗
CSize m_Size;
BOOL m_ResetWnd;
char m_Pos_Flag[6];
// Attributes
public:
void SetTextWnd();
// Operations
public:
/*display a window picture */
protected:
/* set picture display header*/
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTextWnd)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTextWnd();
// Generated message map functions
protected:
//{{AFX_MSG(CTextWnd)
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?