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.cpp next >
C/C++ Source or Header  |  1998-04-02  |  1KB  |  38 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "drawctl.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CDrawCtl
  12.  
  13. IMPLEMENT_DYNCREATE(CDrawCtl, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CDrawCtl properties
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CDrawCtl operations
  20.  
  21. void CDrawCtl::Connect(LPCTSTR pMachineName)
  22. {
  23.     static BYTE parms[] =
  24.         VTS_BSTR;
  25.     InvokeHelper(0x60020000, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  26.          pMachineName);
  27. }
  28.  
  29. void CDrawCtl::Disconnect()
  30. {
  31.     InvokeHelper(0x60020001, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  32. }
  33.  
  34. void CDrawCtl::Clear()
  35. {
  36.     InvokeHelper(0x60020002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  37. }
  38.