📄 createrdlg.h
字号:
// CreaterDlg.h : header file
//
#if !defined(AFX_CREATERDLG_H__52B622D8_4277_4C15_A343_E9BB68373C0F__INCLUDED_)
#define AFX_CREATERDLG_H__52B622D8_4277_4C15_A343_E9BB68373C0F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCreaterDlg dialog
class CCreaterDlg : public CDialog
{
// Construction
public:
int tot_chapter;
int cur_line;
CCreaterDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCreaterDlg)
enum { IDD = IDD_CREATER_DIALOG };
CButton m_delchapter;
CButton m_autodiv;
CButton m_auto;
CComboBox m_chapternum;
CButton m_newchapter;
CStatic m_filename;
CEdit m_text;
CListBox m_chapter;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreaterDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void EmptyInfo(bool);
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCreaterDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnAddfile();
afx_msg void OnNewChapter();
afx_msg void OnDblclkChapter();
afx_msg void OnSelchangeChapter();
afx_msg void OnCheck2();
afx_msg void OnEditchangeCombo2();
afx_msg void OnButton3();
afx_msg void OnDelchapter();
afx_msg void OnButton1();
afx_msg void OnClearChapter();
afx_msg void OnCreat();
afx_msg void OnButton2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void AutoPartition(int n);
CString text; //电子书内容
CString chapter_name[1000]; //章节名称
int cn_pos[10000]; //对应章节名称位置
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CREATERDLG_H__52B622D8_4277_4C15_A343_E9BB68373C0F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -