filedemoview.h

来自「Visual+C+++6[1].0实用教程代码 Visual+C+++6[1]」· C头文件 代码 · 共 71 行

H
71
字号
// FileDemoView.h : interface of the CFileDemoView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_FILEDEMOVIEW_H__ADD9110C_118D_11D1_B719_00C0A83735D8__INCLUDED_)
#define AFX_FILEDEMOVIEW_H__ADD9110C_118D_11D1_B719_00C0A83735D8__INCLUDED_

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

class CFileDemoView : public CView
{
protected: // create from serialization only
	CFileDemoView();
	DECLARE_DYNCREATE(CFileDemoView)

// Attributes
public:
	CFileDemoDoc* GetDocument();

// Operations
public:
	CStringArray m_Pathname;
	CStringArray m_Filename;

	void EmptyStringArrays( void );
	BOOL CopyFile( const char *, const char *, int nBuffersize = 5000 );

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFileDemoView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CFileDemoView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CFileDemoView)
	afx_msg void OnFileAddtolist();
	afx_msg void OnFileSavefilesinlist();
	afx_msg void OnFileEmptylist();
	afx_msg void OnFileCopyfirstfile();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in FileDemoView.cpp
inline CFileDemoDoc* CFileDemoView::GetDocument()
   { return (CFileDemoDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FILEDEMOVIEW_H__ADD9110C_118D_11D1_B719_00C0A83735D8__INCLUDED_)

⌨️ 快捷键说明

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