home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / vcterm / commctrl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.7 KB  |  100 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. #ifndef __COMMCTRL_H__
  7. #define __COMMCTRL_H__
  8.  
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CCommCtrl wrapper class
  11.  
  12. class CCommCtrl : public CWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CCommCtrl)
  16. public:
  17.     CLSID const& GetClsid()
  18.     {
  19.         static CLSID const clsid
  20.             = { 0x648a5600, 0x2c6e, 0x101b, { 0x82, 0xb6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x14 } };
  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 GetCDHolding();
  40.     void SetCDHolding(BOOL);
  41.     long GetCDTimeout();
  42.     void SetCDTimeout(long);
  43.     short GetCommID();
  44.     void SetCommID(short);
  45.     short GetCommPort();
  46.     void SetCommPort(short);
  47.     BOOL GetCTSHolding();
  48.     void SetCTSHolding(BOOL);
  49.     long GetCTSTimeout();
  50.     void SetCTSTimeout(long);
  51.     BOOL GetDSRHolding();
  52.     void SetDSRHolding(BOOL);
  53.     long GetDSRTimeout();
  54.     void SetDSRTimeout(long);
  55.     BOOL GetDTREnable();
  56.     void SetDTREnable(BOOL);
  57.     long GetHandshaking();
  58.     void SetHandshaking(long);
  59.     short GetInBufferSize();
  60.     void SetInBufferSize(short);
  61.     short GetInBufferCount();
  62.     void SetInBufferCount(short);
  63.     BOOL GetBreak();
  64.     void SetBreak(BOOL);
  65.     short GetInputLen();
  66.     void SetInputLen(short);
  67.     long GetInterval();
  68.     void SetInterval(long);
  69.     BOOL GetNullDiscard();
  70.     void SetNullDiscard(BOOL);
  71.     short GetOutBufferSize();
  72.     void SetOutBufferSize(short);
  73.     short GetOutBufferCount();
  74.     void SetOutBufferCount(short);
  75.     CString GetParityReplace();
  76.     void SetParityReplace(LPCTSTR);
  77.     BOOL GetPortOpen();
  78.     void SetPortOpen(BOOL);
  79.     short GetRThreshold();
  80.     void SetRThreshold(short);
  81.     BOOL GetRTSEnable();
  82.     void SetRTSEnable(BOOL);
  83.     CString GetSettings();
  84.     void SetSettings(LPCTSTR);
  85.     short GetSThreshold();
  86.     void SetSThreshold(short);
  87.     VARIANT GetOutput();
  88.     void SetOutput(const VARIANT&);
  89.     CString GetInput();
  90.     void SetInput(LPCTSTR);
  91.     short GetCommEvent();
  92.     void SetCommEvent(short);
  93.  
  94. // Operations
  95. public:
  96.     void AboutBox();
  97. };
  98.  
  99. #endif // __COMMCTRL_H__
  100.