📄 childview.h
字号:
//===================================================================================
//
// 模块: CChildView 视图窗口
//
// 版本: 1.00
//
// 日期: 2005-04-14
//
// 作者: 施探宇
//
// 说明: 显示字体数据阵列.
//
//===================================================================================
#if !defined(AFX_CHILDVIEW_H_INCLUDED_)
#define AFX_CHILDVIEW_H_INCLUDED_
#include "dlgSetup.h"
#if _MSC_VER > 1000
#pragma once
#endif
/////////////////////////////////////////////////////////////////////////////
// CChildView window
class CChildView : public CWnd
{
// Construction
public:
CChildView();
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual BOOL DestroyWindow();
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
// Implementation
public:
virtual ~CChildView();
// Generated message map functions
protected:
///{{AFX_MSG(CChildView)
afx_msg void OnPaint();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//------------------------------
afx_msg void OnFileOpen();
//------------------------------
afx_msg void OnFileSave();
afx_msg void OnFileSaveas();
//------------------------------
//------------------------------
afx_msg void OnEditCopy();
afx_msg void OnEditCut();
afx_msg void OnEditPaste();
//------------------------------
afx_msg void OnEditDelete();
afx_msg void OnEditInsert();
//------------------------------
afx_msg void OnEditFill();
afx_msg void OnEditProperty();
//------------------------------
afx_msg void OnFont1();
afx_msg void OnFont2();
afx_msg void OnFont3();
afx_msg void OnFont4();
afx_msg void OnViewSetup();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
// 显示位置()
int m_MapX;
int m_MapY;
// 设置数据
CSetupData m_data;
// 默认字体
CFont *m_Font;
// 自动对齐(对齐到字节)
BOOL m_bAutoAdjustByte;
// 对齐方式(左中右对齐[0:1:2])
BYTE m_iAdjustMode;
// 文件路径
CString m_SavePathName;
// 设置字体表
int SetFontTable(int nIndex);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -