📄 rxgrid.h
字号:
#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
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -