rxgrid.h

来自「用Visual c++实现汽配件管理系统」· C头文件 代码 · 共 71 行

H
71
字号
#if !defined(AFX_RXGRID_H__D40C9B74_5658_4DD0_88E4_E440FA37A337__INCLUDED_)
#define AFX_RXGRID_H__D40C9B74_5658_4DD0_88E4_E440FA37A337__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 AddCellValue(RxRecordset rs);
	bool m_bReadOnly;
	void ReadOnly(bool bReadOnly);
	void SetDataBase(CString Record,long adCmd);
	void MoveNextItem();
	bool SetCol(int nCol);
	bool SetRow(int nRow);
	int GetCols();
	int GetRows();
	int GetRow();
	int GetCol();
	bool EndEdit();
	bool BeginEdit(int Row,int Col);
	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__D40C9B74_5658_4DD0_88E4_E440FA37A337__INCLUDED_)

⌨️ 快捷键说明

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