www.pudn.com > FlexGrid.rar > FlexGridView.h, change:1999-09-17,size:2473b


// FlexGridView.h : interface of the CFlexGridView class 
// 
///////////////////////////////////////////////////////////////////////////// 
//{{AFX_INCLUDES() 
#include "msflexgrid.h" 
//}}AFX_INCLUDES 
 
#if !defined(AFX_FLEXGRIDVIEW_H__9ABF5F0D_6D1C_11D3_BEF7_00C04F755C52__INCLUDED_) 
#define AFX_FLEXGRIDVIEW_H__9ABF5F0D_6D1C_11D3_BEF7_00C04F755C52__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Grid.h" 
 
class CFlexGridView : public CFormView 
{ 
protected: // create from serialization only 
	CFlexGridView(); 
	DECLARE_DYNCREATE(CFlexGridView) 
 
public: 
	//{{AFX_DATA(CFlexGridView) 
	enum { IDD = IDD_FLEXGRID_FORM }; 
	//CMSFlexGrid	m_grid; - You have to change this as CGrid 
	CGrid m_grid; 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CFlexGridDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CFlexGridView) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	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); 
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CFlexGridView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CFlexGridView) 
	afx_msg void OnClickMsflexgrid1(); 
	afx_msg void OnDblClickMsflexgrid1(); 
	afx_msg void OnKeyPressMsflexgrid1(short FAR* KeyAscii); 
	afx_msg void OnCompareMsflexgrid1(long Row1, long Row2, short FAR* Cmp); 
	DECLARE_EVENTSINK_MAP() 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	HWND hGrid; 
}; 
 
#ifndef _DEBUG  // debug version in FlexGridView.cpp 
inline CFlexGridDoc* CFlexGridView::GetDocument() 
   { return (CFlexGridDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_FLEXGRIDVIEW_H__9ABF5F0D_6D1C_11D3_BEF7_00C04F755C52__INCLUDED_)