📄 word.h
字号:
#if !defined(AFX_WORD_H__BF9ABA6A_4367_4D6F_8AB5_AFBF0E61BA57__INCLUDED_)
#define AFX_WORD_H__BF9ABA6A_4367_4D6F_8AB5_AFBF0E61BA57__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Word.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CWord dialog
#define WM_TEXT_CHANGE (WM_USER + 105)
class CWord : public CDialog
{
// Construction
public:
CWord(CWnd* pParent = NULL); // standard constructor
CWnd *m_pParentWnd; //父窗口指针
// Dialog Data
//{{AFX_DATA(CWord)
enum { IDD = IDD_DIALOG1 };
CString m_Word;
//}}AFX_DATA
COLORREF m_textcolor; //字体颜色
LOGFONT m_text; //字体式样字体大小 //字体
CPoint m_textpoint;
void SetText(CString word, COLORREF textcolor, LOGFONT text,CPoint textpoint);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWord)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CWord)
virtual void OnOK();
afx_msg void OnButton1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WORD_H__BF9ABA6A_4367_4D6F_8AB5_AFBF0E61BA57__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -