home *** CD-ROM | disk | FTP | other *** search
- // 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 DaoRecordset
- {
- static BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam);
- protected:
- bool alta;
- //Attribute that determines if we are editing or adding a record.
- void EnableControls(HWND hwnd, bool enable);
- //Control enabling function
- 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, bool a = false);
- //Regular constructor. It takes a SQL string and an editing/adding condition.
- DaoWindow(DaoRecordset& r, bool a = false);
- //Constructor for child objects, taking an existing recordset.
- virtual ~DaoWindow() {};
- DaoWindow* operator&() {return this;}
- friend class CDaoPropPage;
- //Objects of this class must access protected attributes.
- };
-
- #endif // !defined(AFX_DAOWINDOW_H__8DA15773_75B9_11D2_9172_8E5E24000000__INCLUDED_)
-