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

📄 qqview.h

📁 VC++编写的论文管理系统
💻 H
字号:
// QQView.h : interface of the CQQView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_)
#define AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "QQDoc.h"
//#include "InfoLookDialog.h"
#include "infoset.h"
#include <Afxtempl.h>//模板头文件


class CQQCntrItem;
struct RANGLEITEMSINFO //定义图像矩形区域结构体
{
    int nIndex;//矩形在图像中的索引
	long x1;
	long y1;
	long x2;
	long y2;
	CString strContentText;//矩形内的文本
};

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

// Attributes
public:
//	void DrawRangle(long x1, long y1, long x2, long y2,CDC* pDC);
	CQQCntrItem* m_pSelection;
    static CQQView* GetView();//静态成员函数得到CView指针,供其他对象使用
	CQQDoc* GetDocument();
	CString strShowText;
	bool bFinish;
	bool bFirst;
	static HBITMAP m_CurScreenBitmap;//当前屏幕位图句柄
	static int nImgTypeInView;//当前视图区域显示的图形类型-1为背景图
	                          //0为文字图像
	                          //13为框架图像
	CList<RANGLEITEMSINFO*,RANGLEITEMSINFO*> m_List;//结构体列表
	static CPoint pnt;//静态点,用来为显示信息对话框作为中点
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CQQView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
		protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL IsSelected(const CObject* pDocItem) const;// Container support

	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetBitmapText(CPoint pnt,CDC* pDC,CString strText);
	void SetBitmapText(long x,long y,CDC* pDC,CString strText)
	{
		SetBitmapText(CPoint(x,y),pDC,strText);
	}
	void LoadWelocmeBmp(CDC* pDC);//load the welocme bmp
	void LoadbgroundBitmap(CDC* pDC);
	static BOOL bFirstRun;
	virtual ~CQQView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CQQView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnInsertObject();
	afx_msg void OnCancelEditCntr();
	afx_msg void OnSetPath();
	afx_msg void OnInfoIn();
	afx_msg void OnInfoOut();
	afx_msg void OnExit();
	afx_msg void OnInfolookAll();
	afx_msg void OnInfolookKey();
	afx_msg void OnInfolookNone();
	afx_msg void OnInfolookStu();
	afx_msg void OnInfolookThesis();
	afx_msg void OnAddThesis();
	afx_msg void OnDeleteThesis();
	afx_msg void OnModifyThesis();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	CString OpenWord(CString file);
	void SaveToDb(CString str);
	void saveToDoc(CString tempFileFind,CString Textcontent);
	COtherInfoSet m_OtherInfoSet;
	CStuInfo m_StuInfoSet;
	CThesisInfoSet m_ThesisInfoSet;
};
#ifndef _DEBUG  // debug version in QQView.cpp
inline CQQDoc* CQQView::GetDocument()
{ return (CQQDoc*)m_pDocument; }
#endif




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

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

#endif // !defined(AFX_QQVIEW_H__F9983CE8_554D_4622_8942_ECD35A6EB5E6__INCLUDED_)

⌨️ 快捷键说明

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