Text2PDFDlg.h
资源名称:Text2PDF.zip [点击查看]
上传用户:lqriiqpl
上传日期:2022-07-04
资源大小:258k
文件大小:2k
源码类别:
文件操作
开发平台:
Visual C++
- // 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_)