previewview.h

来自「将源代码转换成html,支持多操作系统」· C头文件 代码 · 共 97 行

H
97
字号
// PreviewView.h : interface of the CSCSPreviewView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_PREVIEWVIEW_H__632289D2_1B1F_4A26_9866_B3BCC439A024__INCLUDED_)
#define AFX_PREVIEWVIEW_H__632289D2_1B1F_4A26_9866_B3BCC439A024__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



class CSCSPreviewView : public CView
{
protected: // create from serialization only
	CSCSPreviewView();
	DECLARE_DYNCREATE(CSCSPreviewView)

// Attributes
public:
	CSCSDoc* GetDocument();
	CDC *m_pMemDC;
	int m_nHRes, m_nVRes;

	COLORREF m_UndoColour;
	int m_UndoElement;
	COLORREF m_RedoColour;
	int m_RedoElement;

	int m_Example;
	char m_wDir[255];

// Operations
public:
	void highlight(int context);
	void drawPerl(CDC* pDC, CSCSDoc* pDoc);
	void drawCpp(CDC* pDC, CSCSDoc* pDoc);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSCSPreviewView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSCSPreviewView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSCSPreviewView)
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnColoursBackground();
	afx_msg void OnColoursComment();
	afx_msg void OnColoursKeywords();
	afx_msg void OnColoursNormaltext();
	afx_msg void OnColoursNumbers();
	afx_msg void OnColoursPreprocessor();
	afx_msg void OnColoursStrings();
	afx_msg void OnColoursRandomcolours();
	afx_msg void OnFileExport();
	afx_msg void OnFileImport();
	afx_msg void OnColoursTypes();
	afx_msg void OnColoursSymbols();
	afx_msg void OnColoursSinglequotes();
	afx_msg void OnColoursFloatingpoints();
	afx_msg void OnColoursBackdrop();
	afx_msg void OnEditClearbackdrop();
	afx_msg void OnEditUndo();
	afx_msg void OnViewCexample();
	afx_msg void OnViewPerlexample();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in PreviewView.cpp
inline CSCSDoc* CSCSPreviewView::GetDocument()
   { return (CSCSDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PREVIEWVIEW_H__632289D2_1B1F_4A26_9866_B3BCC439A024__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?