mscomm.h
资源名称:01.rar [点击查看]
上传用户:connie527
上传日期:2022-04-15
资源大小:4326k
文件大小:3k
源码类别:
行业应用
开发平台:
Visual C++
- #if !defined(AFX_MSCOMM_H__DA4BFE11_CAC1_466A_817A_8EC8B76F28A7__INCLUDED_)
- #define AFX_MSCOMM_H__DA4BFE11_CAC1_466A_817A_8EC8B76F28A7__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
- /////////////////////////////////////////////////////////////////////////////
- // CMSComm wrapper class
- class CMSComm : public CWnd
- {
- protected:
- DECLARE_DYNCREATE(CMSComm)
- public:
- CLSID const& GetClsid()
- {
- static CLSID const clsid
- = { 0x648a5600, 0x2c6e, 0x101b, { 0x82, 0xb6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x14 } };
- return clsid;
- }
- virtual BOOL Create(LPCTSTR lpszClassName,
- LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect,
- CWnd* pParentWnd, UINT nID,
- CCreateContext* pContext = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
- BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect, CWnd* pParentWnd, UINT nID,
- CFile* pPersist = NULL, BOOL bStorage = FALSE,
- BSTR bstrLicKey = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
- pPersist, bStorage, bstrLicKey); }
- // Attributes
- public:
- // Operations
- public:
- void SetCDHolding(BOOL bNewValue);
- BOOL GetCDHolding();
- void SetCommID(long nNewValue);
- long GetCommID();
- void SetCommPort(short nNewValue);
- short GetCommPort();
- void SetCTSHolding(BOOL bNewValue);
- BOOL GetCTSHolding();
- void SetDSRHolding(BOOL bNewValue);
- BOOL GetDSRHolding();
- void SetDTREnable(BOOL bNewValue);
- BOOL GetDTREnable();
- void SetHandshaking(long nNewValue);
- long GetHandshaking();
- void SetInBufferSize(short nNewValue);
- short GetInBufferSize();
- void SetInBufferCount(short nNewValue);
- short GetInBufferCount();
- void SetBreak(BOOL bNewValue);
- BOOL GetBreak();
- void SetInputLen(short nNewValue);
- short GetInputLen();
- void SetNullDiscard(BOOL bNewValue);
- BOOL GetNullDiscard();
- void SetOutBufferSize(short nNewValue);
- short GetOutBufferSize();
- void SetOutBufferCount(short nNewValue);
- short GetOutBufferCount();
- void SetParityReplace(LPCTSTR lpszNewValue);
- CString GetParityReplace();
- void SetPortOpen(BOOL bNewValue);
- BOOL GetPortOpen();
- void SetRThreshold(short nNewValue);
- short GetRThreshold();
- void SetRTSEnable(BOOL bNewValue);
- BOOL GetRTSEnable();
- void SetSettings(LPCTSTR lpszNewValue);
- CString GetSettings();
- void SetSThreshold(short nNewValue);
- short GetSThreshold();
- void SetOutput(const VARIANT& newValue);
- VARIANT GetOutput();
- void SetInput(const VARIANT& newValue);
- VARIANT GetInput();
- void SetCommEvent(short nNewValue);
- short GetCommEvent();
- void SetEOFEnable(BOOL bNewValue);
- BOOL GetEOFEnable();
- void SetInputMode(long nNewValue);
- long GetInputMode();
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MSCOMM_H__DA4BFE11_CAC1_466A_817A_8EC8B76F28A7__INCLUDED_)