home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / dcom / mfccont / drawctl.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  2KB  |  54 lines

  1. #if !defined(AFX_DRAWCTL_H__29DC9F80_5706_11D0_9899_00C04FD7D06E__INCLUDED_)
  2. #define AFX_DRAWCTL_H__29DC9F80_5706_11D0_9899_00C04FD7D06E__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CDrawCtl wrapper class
  14.  
  15. class CDrawCtl : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CDrawCtl)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0x48ddcc1d, 0x1fe0, 0x11d0, { 0xb9, 0x1b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.  
  43. // Operations
  44. public:
  45.     void Connect(LPCTSTR pMachineName);
  46.     void Disconnect();
  47.     void Clear();
  48. };
  49.  
  50. //{{AFX_INSERT_LOCATION}}
  51. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  52.  
  53. #endif // !defined(AFX_DRAWCTL_H__29DC9F80_5706_11D0_9899_00C04FD7D06E__INCLUDED_)
  54.