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

📄 daowindow.h

📁 Visual C++ 数 据 库
💻 H
字号:
// DaoWindow.h: interface for the DaoWindow class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DAOWINDOW_H__8DA15773_75B9_11D2_9172_8E5E24000000__INCLUDED_)
#define AFX_DAOWINDOW_H__8DA15773_75B9_11D2_9172_8E5E24000000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "bordao.h"

//This is the base class for dialog and property sheet objects. They must
//inherit from this in addition to their MFC hierarchy.
//It manages recordset mapping of the user interface object.

class DaoWindow : public Recordset  
{
protected:
	bool alta;
		//Attribute that determines if we are editing or adding a record.
public:
	virtual bool Execute() = 0;
		//Mandatory execution method.
	virtual bool Exec(char* sql, bool a = false);
		//This method launches a dialog object from an external user interface.
	virtual bool Baja(char* sql);
		//Method for managing record deletion
	DaoWindow(LPCSTR s = 0, bool a = false);
		//Regular constructor. It takes a SQL string and an editing/adding condition.
	DaoWindow(Recordset& r, bool a = false);
		//Constructor for child objects, taking an existing recordset.
	virtual ~DaoWindow() {};
	friend class CDaoPropPage;
		//Objects of this class must access protected attributes.
};

#endif // !defined(AFX_DAOWINDOW_H__8DA15773_75B9_11D2_9172_8E5E24000000__INCLUDED_)

⌨️ 快捷键说明

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