rxgrid.h

来自「商品库存管理系统 用VC++6.0编写」· C头文件 代码 · 共 66 行

H
66
字号
#if !defined(AFX_RXGRID_H__AF1158E1_612A_11D8_8751_5254AB32C8FB__INCLUDED_)
#define AFX_RXGRID_H__AF1158E1_612A_11D8_8751_5254AB32C8FB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RxGrid.h : header file
//
#include "ExtendEdit.h"
#include "ExtendEdit_Grid.h"
/////////////////////////////////////////////////////////////////////////////
// CRxGrid window

class CRxGrid : public CExtendEdit_Grid
{
// Construction
public:
	CRxGrid();
	_RecordsetPtr m_Recordset;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRxGrid)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL
// Implementation
public:
	bool IsCanEdit;
	void ClearGrid();
	void SetField(CString sField);
	void SetAssn(bool bAssn);
	void SetDataBase(CString sDataBaseName);
	int GetCol();
	int GetRow();
	void EndEdit(bool bValidate);
	int BeginEdit(int Row ,int Col );
	virtual ~CRxGrid();
	int m_Row; //当前行数
	int m_Col;	//当前列数
	CExtendEdit m_Edit; //编辑控件
	bool AutoInsert;



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

	DECLARE_MESSAGE_MAP()
private:

	bool Assn;
	CString Field;
	CString Database;
	bool bEditing; //是否正在编辑
};

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

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

#endif // !defined(AFX_RXGRID_H__AF1158E1_612A_11D8_8751_5254AB32C8FB__INCLUDED_)

⌨️ 快捷键说明

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