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

📄 poetryview.h

📁 利用MFC制作的可视界面演示律诗绝句生成过程
💻 H
字号:
// PoetryView.h : interface of the CPoetryView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_POETRYVIEW_H__3F7A43A5_0D02_47D1_A70F_F3D67C9C5AB7__INCLUDED_)
#define AFX_POETRYVIEW_H__3F7A43A5_0D02_47D1_A70F_F3D67C9C5AB7__INCLUDED_

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

#define FILE_POETRYINFO			GetAbsolutePath("dat\\type.ini")
#define FILE_POETRYEXTERN	    GetAbsolutePath("dat\\extern.ini")
#define FILE_POETRYSEVEN	    GetAbsolutePath("dat\\seven.ini")


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

// Attributes
public:
	CPoetryDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPoetryView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPoetryView();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPoetryView)
	afx_msg void OnPaint();
	afx_msg void OnZetoze();
	afx_msg void OnZetoping();
	afx_msg void OnPingtoze();
	afx_msg void OnPingtoping();
	afx_msg void OnTypea();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTypeb();
	afx_msg void OnTypec();
	afx_msg void OnTyped();
	afx_msg void OnExtern();
	afx_msg void OnRecover();
	afx_msg void OnExample();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL m_newoper;
	BOOL m_Sevenwords;
	BOOL m_Finish;
	int m_nWidth;
	int m_Cuttype;
	int m_Poetype;

public:
	void GetStringFromFile(	LPCTSTR	lpSectionName,
		LPCTSTR	lpKeyName,
		LPTSTR	lpReturnedString,
		LPCTSTR	lpDefault,
		LPCTSTR lpFileName);
};

#ifndef _DEBUG  // debug version in PoetryView.cpp
inline CPoetryDoc* CPoetryView::GetDocument()
   { return (CPoetryDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_POETRYVIEW_H__3F7A43A5_0D02_47D1_A70F_F3D67C9C5AB7__INCLUDED_)

⌨️ 快捷键说明

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