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

📄 example_3view.h

📁 基于mfc的ODBC数据库连接编程,并包含图形的报表的生成以及动态表格报表的建模
💻 H
字号:
// Example_3View.h : interface of the CExample_3View class
//
/////////////////////////////////////////////////////////////////////////////
#include <math.h>
#if !defined(AFX_EXAMPLE_3VIEW_H__53BF810A_E0E1_4A4A_A805_B52C22A5B4F8__INCLUDED_)
#define AFX_EXAMPLE_3VIEW_H__53BF810A_E0E1_4A4A_A805_B52C22A5B4F8__INCLUDED_

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

const int DRAWWIDTH=480;
const int DRAWHEIGHT=1200;

class CExample_3View : public CScrollView
{
protected: // create from serialization only
	CExample_3View();
	DECLARE_DYNCREATE(CExample_3View)
	int m_NumCols,m_NumRows;
	int m_PageHeight,m_PageWidth;

// Attributes
public:
	CExample_3Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CExample_3View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	int m_option;
	CString fdn;
	int n;
	void Dline(int n,CString fdn);
	virtual ~CExample_3View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CExample_3View)
	afx_msg void OnIndex1();
	afx_msg void OnIndex2();
	afx_msg void OnIndex3();
	afx_msg void OnFilePrintDirectly();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int Ptable(CDC* pDC);
};

#ifndef _DEBUG  // debug version in Example_3View.cpp
inline CExample_3Doc* CExample_3View::GetDocument()
   { return (CExample_3Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_EXAMPLE_3VIEW_H__53BF810A_E0E1_4A4A_A805_B52C22A5B4F8__INCLUDED_)

⌨️ 快捷键说明

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