MainTable.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #if !defined(AFX_MAINTABLE_H__F5CFB0A6_A6E1_4C55_A685_AB5F1A0FCF53__INCLUDED_)
  2. #define AFX_MAINTABLE_H__F5CFB0A6_A6E1_4C55_A685_AB5F1A0FCF53__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. #include "ArrayEx.h"
  7. #include "Misc.h"
  8. class CMainTable : public CDaoRecordset
  9. {
  10. public:
  11. CMainTable(CDaoDatabase* pDatabase = NULL);
  12. DECLARE_DYNAMIC(CMainTable)
  13. // Field/Param Data
  14. //{{AFX_FIELD(CMainTable, CDaoRecordset)
  15. long m_lID;
  16. long m_lDate;
  17. CString m_strText;
  18. long m_lShortCut;
  19. long m_lDontAutoDelete;
  20. long m_lTotalCopySize;
  21. //}}AFX_FIELD
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CMainTable)
  25. public:
  26. virtual CString GetDefaultDBName(); // Default database name
  27. virtual CString GetDefaultSQL(); // Default SQL for Recordset
  28. virtual void DoFieldExchange(CDaoFieldExchange* pFX); // RFX support
  29. virtual void Open(int nOpenType = AFX_DAO_USE_DEFAULT_TYPE, LPCTSTR lpszSql = NULL, int nOptions = 0);
  30. virtual void Requery();
  31. //}}AFX_VIRTUAL
  32. public:
  33. void OnQuery();
  34. int m_nFieldCount;
  35. bool m_bBindFields;
  36. bool SetBindFields(bool bVal);
  37. // long GetID();
  38. int m_nCurPos;
  39. long m_lCurID; // used to validate m_nCurPos
  40. // only deletes from Main
  41. static BOOL DeleteAll();
  42. static void LoadAcceleratorKeys( CAccels& accels );
  43. // static HACCEL LoadAcceleratorKeys(); //!!!!!
  44. void Open(LPCTSTR lpszFormat,...);
  45. // Implementation
  46. #ifdef _DEBUG
  47. virtual void AssertValid() const;
  48. virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50. };
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  53. #endif // !defined(AFX_MAINTABLE_H__F5CFB0A6_A6E1_4C55_A685_AB5F1A0FCF53__INCLUDED_)