extendlg.h

来自「《Visual C++ Bible》或者说是《Visual C++ 宝典》的对应」· C头文件 代码 · 共 55 行

H
55
字号
// extendlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// DExtensionDlg dialog

class DExtensionDlg : public CDialog
{
// Construction
public:
	DExtensionDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(DExtensionDlg)
	enum { IDD = IDD_EXTENSIONS };
	CButton	 d_bnAdd;
	CButton	 d_bnDelete;
	CButton	 d_bnReplace;
	CEdit	 d_edDescription;
	CEdit	 d_edExtension;
	CListBox d_listExtensions;
	//}}AFX_DATA

    CStringList   d_cslFileType;  // List of file extensions.

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

// Implementation
protected:
    void CopyEditToListboxAt(int nIndex);
    void CopyListboxToStringList(CListBox &list, CStringList * psl);
    void SplitAtChar(CString& csIn, CString& csL, CString& csR, TCHAR tch);
  
	// Generated message map functions
	//{{AFX_MSG(DExtensionDlg)
	virtual BOOL OnInitDialog();
	afx_msg void CtlAdd();
	afx_msg void CtlClose();
	afx_msg void CtlDelete();
	afx_msg void CtlReplace();
	afx_msg void CtlDblclkList1();
	afx_msg void CtlDoubleclickedDelete();
	afx_msg void CtlChangeDescription();
	afx_msg void CtlChangeExtension();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

const int MAX_LEN = 255;

⌨️ 快捷键说明

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