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

📄 rxgrid.h

📁 一个有关人事系统的所有代码和有关文件包括里面小量数据库。
💻 H
字号:
#if !defined(AFX_RXGRID_H__D9208670_B999_4734_A68B_720C8E085C29__INCLUDED_)
#define AFX_RXGRID_H__D9208670_B999_4734_A68B_720C8E085C29__INCLUDED_

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

class RxGrid : public CListCtrl
{
// Construction
public:
	RxGrid();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(RxGrid)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	void ReadOnly(bool bReadOnly);
	bool BeginEdit(int Row,int Col);
	void SetDataBase(CString Record,long adCmd);
	void AddCellValue(RxRecordset rs);
	bool SetRow(int nRow);
	bool SetCol(int nCol);
	int GetCol();
	int GetRow();
	int GetRows();
	int GetCols();
	bool EndEdit();
	void MoveNextItem();
	bool m_bReadOnly;
//	void ReadOnly(bool bReadOnly);
	virtual ~RxGrid();
	RxEdit m_Edit;
	// Generated message map functions
protected:
	//{{AFX_MSG(RxGrid)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()	
private:
	bool BEditing;//单元格是否正在编辑
	int m_Col;
	int m_Row;
	RxRecordset rst;
};

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

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

#endif // !defined(AFX_RXGRID_H__D9208670_B999_4734_A68B_720C8E085C29__INCLUDED_)

⌨️ 快捷键说明

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