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 / accpict.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  61 lines

  1. #ifndef __ACCPICT_H__
  2. #define __ACCPICT_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. // CAccessPict wrapper class
  11.  
  12. class CAccessPict : public CWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CAccessPict)
  16. public:
  17.     CLSID const& GetClsid()
  18.     {
  19.         static CLSID const clsid
  20.             = { 0x1f4e7c23, 0xc38f, 0x11ce, { 0x96, 0x11, 0x0, 0xaa, 0x0, 0x4a, 0x75, 0xcf } };
  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.     BOOL GetIsAccessObject();
  40.     void SetIsAccessObject(BOOL);
  41.     BOOL GetStretchToFit();
  42.     void SetStretchToFit(BOOL);
  43.     BOOL GetPreserveRatio();
  44.     void SetPreserveRatio(BOOL);
  45.     LPDISPATCH GetPicture();
  46.     void SetPicture(LPDISPATCH);
  47.     short GetBorderStyle();
  48.     void SetBorderStyle(short);
  49.     CString GetCaption();
  50.     void SetCaption(LPCTSTR);
  51.     LPFONTDISP GetFont();
  52.     void SetFont(LPFONTDISP);
  53.  
  54. // Operations
  55. public:
  56.     BOOL SetData(VARIANT* pvarData);
  57.     void AboutBox();
  58. };
  59.  
  60. #endif // __ACCPICT_H__
  61.