beautifier.h

来自「一个完全使用MFC框架开发的C++编译器的代码。功能十分强大可以编译大型程序。」· C头文件 代码 · 共 63 行

H
63
字号
#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 + =
减小字号Ctrl + -
显示快捷键?