home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / daoctl / daoedit.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  54 lines

  1. #ifndef __DAOEDIT_H__
  2. #define __DAOEDIT_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CDaoEdit wrapper class
  11.  
  12. class CDaoEdit : public CWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CDaoEdit)
  16. public:
  17.     CLSID const& GetClsid()
  18.     {
  19.         static CLSID const clsid
  20.             = { 0x5fdfc3e3, 0xc360, 0x11ce, { 0xa9, 0x87, 0x0, 0xaa, 0x0, 0x6e, 0xa4, 0xda } };
  21.         return clsid;
  22.     }
  23.     virtual BOOL Create(LPCTSTR lpszClassName,
  24.         LPCTSTR lpszWindowName, DWORD dwStyle,
  25.         const RECT& rect,
  26.         CWnd* pParentWnd, UINT nID,
  27.         CCreateContext* pContext = NULL)
  28.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  29.  
  30.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  31.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  32.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  33.         BSTR bstrLicKey = NULL)
  34.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  35.         pPersist, bStorage, bstrLicKey); }
  36.  
  37. // Attributes
  38. public:
  39.     CString GetText();
  40.     void SetText(LPCTSTR);
  41.     CString Get_Text();
  42.     void Set_Text(LPCTSTR);
  43.     short GetBorderStyle();
  44.     void SetBorderStyle(short);
  45.     CString GetFieldName();
  46.     void SetFieldName(LPCTSTR);
  47.  
  48. // Operations
  49. public:
  50.     void AboutBox();
  51. };
  52.  
  53. #endif // __DAOEDIT_H__
  54.