⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 beautifier.h

📁 一个完全使用MFC框架开发的C++编译器的代码。功能十分强大可以编译大型程序。
💻 H
字号:
#if !defined(AFX_BEAUTIFER_H__1C115531_2B12_4F55_BA60_EBD2602159AC__INCLUDED_)
#define AFX_BEAUTIFER_H__1C115531_2B12_4F55_BA60_EBD2602159AC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Beautifer.h : header file
//
#include <vector>

/////////////////////////////////////////////////////////////////////////////
// CBeautifier dialog

class CBeautifier : public CDialog
{
	CFont* font;
	std::vector<std::string> beautifiedtext;
	static CBeautifier* pBeautifier;
	ConsoleApp* m_pConsoleApp;
	static void Collect(DWORD bufct);
	void CollectSourceLines(DWORD bufct);
	void NotifyTermination();
	static void Notify();

// Construction
public:
	CBeautifier(CWnd* pParent = NULL);   // standard constructor
	~CBeautifier();
// Dialog Data
	//{{AFX_DATA(CBeautifier)
	enum { IDD = IDD_BEAUTIFIER };
	CButton	m_TestStyle;
	CEdit	m_CmdLineEdit;
	CEdit	m_samplecode;
	int		m_style;
	CString	m_Cmdline;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBeautifier)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CBeautifier)
	afx_msg void OnStyle();
	virtual BOOL OnInitDialog();
	afx_msg void OnHelp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_BEAUTIFER_H__1C115531_2B12_4F55_BA60_EBD2602159AC__INCLUDED_)

⌨️ 快捷键说明

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