📄 notexpadview.h
字号:
// NoteXpadView.h : interface of the CNoteXpadView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_NOTEXPADVIEW_H__7AAEBBD0_3504_11D4_8F58_006008B13CA9__INCLUDED_)
#define AFX_NOTEXPADVIEW_H__7AAEBBD0_3504_11D4_8F58_006008B13CA9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "NoteXpadDoc.h"
class CNoteXpadView : public CEditView
{
protected: // create from serialization only
CNoteXpadView();
DECLARE_DYNCREATE(CNoteXpadView)
// Attributes
public:
CNoteXpadDoc* GetDocument();
void CNoteXpadView::LoadViewFont();
void SaveViewFont();
CString CNoteXpadView::GetSelectedTxt();
void CNoteXpadView::Initialize();
void CNoteXpadView::OnChangeFont();
void WriteProfileFont(LPCTSTR szSec, const LOGFONT* plf, LOGFONT* plfOld);
void GetProfileFont(LPCTSTR szSec, LOGFONT* plf);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNoteXpadView)
public:
virtual void OnInitialUpdate();
protected:
//virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CNoteXpadView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
static LOGFONT m_lfDefFont;
static LOGFONT NEAR m_lfOldDefFont;
CFont m_font;
COLORREF m_TextColor;
COLORREF m_BackColor;
CBrush m_BkBrush;
// Generated message map functions
protected:
//{{AFX_MSG(CNoteXpadView)
afx_msg void OnChange();
afx_msg void OnDestroy();
afx_msg void OnMaxtext();
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg void OnChangecolor();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
//afx_msg void SaveViewFont();
};
#ifndef _DEBUG // debug version in NoteXpadView.cpp
inline CNoteXpadDoc* CNoteXpadView::GetDocument()
{ return (CNoteXpadDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NOTEXPADVIEW_H__7AAEBBD0_3504_11D4_8F58_006008B13CA9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -