⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mystdiofileview.h

📁 本文件中包含的是《VC编程100例》一书中的源代码
💻 H
字号:
// MyStdioFileView.h : interface of the CMyStdioFileView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYSTDIOFILEVIEW_H__9A0C2C76_C9D2_46DB_A34D_55DC42D07B72__INCLUDED_)
#define AFX_MYSTDIOFILEVIEW_H__9A0C2C76_C9D2_46DB_A34D_55DC42D07B72__INCLUDED_

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


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

// Attributes
public:
	CMyStdioFileDoc* GetDocument();

// Operations
public:

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

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMyStdioFileView)
	afx_msg void OnFileOpen();
	afx_msg void OnFileSaveAs();
	afx_msg void OnFileSave();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CString m_strRPath;
	CString m_strWPath;
	BOOL m_bWR;			//true write false read
};

#ifndef _DEBUG  // debug version in MyStdioFileView.cpp
inline CMyStdioFileDoc* CMyStdioFileView::GetDocument()
   { return (CMyStdioFileDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MYSTDIOFILEVIEW_H__9A0C2C76_C9D2_46DB_A34D_55DC42D07B72__INCLUDED_)

⌨️ 快捷键说明

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