axatlconview.h

来自「教你怎么用VC++做ActiveX控件」· C头文件 代码 · 共 75 行

H
75
字号
// AxAtlConView.h : interface of the CAxAtlConView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_AXATLCONVIEW_H__E38E77D3_7DE3_11D4_A54D_0050BADB14A3__INCLUDED_)
#define AFX_AXATLCONVIEW_H__E38E77D3_7DE3_11D4_A54D_0050BADB14A3__INCLUDED_

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

#include "AxAtlSrv_i.c"
#include "AxAtlSrv.h"

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

// Attributes
public:
	CAxAtlConDoc* GetDocument();
	IAxTable* m_pTable;
	BOOL m_bIsDrag;	
	CPoint	m_ptRect1;	//	窗口显示的第一点
	CPoint	m_ptRect2;	//	窗口显示的第二点

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAxAtlConView)
	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 ~CAxAtlConView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CAxAtlConView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in AxAtlConView.cpp
inline CAxAtlConDoc* CAxAtlConView::GetDocument()
   { return (CAxAtlConDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_AXATLCONVIEW_H__E38E77D3_7DE3_11D4_A54D_0050BADB14A3__INCLUDED_)

⌨️ 快捷键说明

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