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

📄 text2pdfdlg.h

📁 将TXT文件转换成PDF文件,从CODEPROJECTS网站上得来的,很好用!
💻 H
字号:
// Text2PDFDlg.h : header file
//

#if !defined(AFX_TEXT2PDFDLG_H__F2791FE6_B167_44AE_9AE3_D0636968967A__INCLUDED_)
#define AFX_TEXT2PDFDLG_H__F2791FE6_B167_44AE_9AE3_D0636968967A__INCLUDED_

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

#include "CommonDef.h"
/////////////////////////////////////////////////////////////////////////////
// CText2PDFDlg dialog

class CText2PDFDlg : public CDialog
{
// Construction
public:
	void UpdateTextFile(CString FileName);
	CText2PDFDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CText2PDFDlg)
	enum { IDD = IDD_TEXT2PDF_DIALOG };
	CProgressCtrl	m_Progress;
	CString	m_FileName;
	CString	m_Font;
	CString	m_Text;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CText2PDFDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnClose();
	afx_msg void OnConvert();
	afx_msg void OnFileSelect();
	afx_msg void OnFontSelect();
	afx_msg void OnOptions();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString m_PDFName;
	void CheckConvertBtn();
	struct _FontSpec
	{
		LOGFONT lf;
		int FontSize;
	} FontSpec;

	struct _PageSpec PageSpec;
};

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

#endif // !defined(AFX_TEXT2PDFDLG_H__F2791FE6_B167_44AE_9AE3_D0636968967A__INCLUDED_)

⌨️ 快捷键说明

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