createfiledlg.h

来自「大型实验:Unix文件管系统模拟。用内存中的一段区域模拟硬盘空间」· C头文件 代码 · 共 54 行

H
54
字号
#if !defined(AFX_CREATEFILEDLG_H__D486809D_D2E7_40DC_81F3_62B5CE7F9DD1__INCLUDED_)
#define AFX_CREATEFILEDLG_H__D486809D_D2E7_40DC_81F3_62B5CE7F9DD1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CreatefileDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CCreatefileDlg dialog

class CCreatefileDlg : public CDialog
{
// Construction
public:
	CCreatefileDlg(CWnd* pParent = NULL);   // standard constructor
	CCreatefileDlg(UINT type,UINT dir_id=0,CWnd* pParent = NULL);   // standard constructor
	
	virtual BOOL OnInitDialog();

	UINT m_type;//0创建文件,1打开文件读,2打开文件写,3打开文件追加
	UINT m_dirid;
// Dialog Data
	//{{AFX_DATA(CCreatefileDlg)
	enum { IDD = IDD_DIALOG4 };
	CString	m_fname;
	LONG	m_size;
	CString	m_buf;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CCreatefileDlg)
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CREATEFILEDLG_H__D486809D_D2E7_40DC_81F3_62B5CE7F9DD1__INCLUDED_)

⌨️ 快捷键说明

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