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

📄 flexgridview.h

📁 一个关于MSFlexGrid使用的例子,能够进行表格的编辑等操作
💻 H
字号:
// 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_)

⌨️ 快捷键说明

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