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

📄 vipeview.h

📁 VC++S数据库编程代码实现--ADO开发会员管理系统
💻 H
字号:
// VIPeView.h : CVIPeView 类的接口
//


#pragma once


class CVIPeView : public CListView
{
protected: // 仅从序列化创建
	CVIPeView();
	DECLARE_DYNCREATE(CVIPeView)

// 属性
public:
	CVIPeDoc* GetDocument() const;

// 操作
public:

// 重写
	public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void OnInitialUpdate(); // 构造后第一次调用

// 实现
public:
	virtual ~CVIPeView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

public:
	_ConnectionPtr m_connection;
	_RecordsetPtr m_recordset;
	_CommandPtr m_command;
private:
	CString m_strSource;
	BOOL m_fConnected;
private:
	BOOL OpenCurRecordset(CString strTableName);
	BOOL RefreshColumn(ULONG *pulColCount);
	BOOL RefreshData(ULONG ulColCount);
	BOOL GetInfoArray(CString strTableName, CUIntArray &uaID, 
		CStringArray &saArray);
	BOOL InsertRow(CString strTableName, CStringArray &saValues);
	BOOL DeleteRow(CString strTableName, CString strColName, 
		CString strValue);
	CString VariantToCtring(VARIANT var);
	BOOL ConstructVar(CString strValue, int type, VARIANT *var);

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnMemberInput();
	afx_msg void OnMemberExit();
	afx_msg void OnMemberQuery();
	afx_msg void OnSocietyRegiest();
	afx_msg void OnSocietyDelete();
	afx_msg void OnSocietyQuery();
	afx_msg void OnExpenseRegiest();
	afx_msg void OnExpenseStatics();
};

#ifndef _DEBUG  // VIPeView.cpp 的调试版本
inline CVIPeDoc* CVIPeView::GetDocument() const
   { return reinterpret_cast<CVIPeDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

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