cdatamandoc.h

来自「共享内存的源代码」· C头文件 代码 · 共 91 行

H
91
字号
// CDataManDoc.h : interface of the CDataManDoc class
//
/////////////////////////////////////////////////////////////////////////////
#include ".\npserver.h"

#if !defined(AFX_CDataManDOC_H__4F114917_C2D7_49B4_8D33_6F1AD6F9FEEB__INCLUDED_)
#define AFX_CDataManDOC_H__4F114917_C2D7_49B4_8D33_6F1AD6F9FEEB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define MINCOMPORT	4
#define MAXCOMPORT	9

typedef CTypedPtrList <CPtrList, CNPServer*> CNPList;

class CDataManDoc : public CDocument
{
protected: // create from serialization only
	CDataManDoc();
	DECLARE_DYNCREATE(CDataManDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDataManDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation




public:
	virtual ~CDataManDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDataManDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	void SetNPList(int nServerNum);
	CNPList m_NPlist;
	DWORD GetNewCOMPort(void);
	void ReleaseCOMPort(DWORD nCOMPort);
	BOOL bCOMArray[256]; //where bCOMArray[i] == TRUE,means COMi is set
	void ReleaseAllCOMPort(void);
	BOOL InitNPServerList(void);
protected:
	CString m_strKeyEnum;
	CString m_strKeyParam;
	CString m_strKeyServer;
	CString m_strKeyPorts;
	DWORD m_nServerNum;
	DWORD m_nPortsNum;
	void ClearNPList(void);
public:
	virtual void DeleteContents();
	afx_msg void OnFileNew();
//	afx_msg void OnMapWriteregistry();
	int SetPortsNum(void);
	int GetPortsNum(void);
	

};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CDataManDOC_H__4F114917_C2D7_49B4_8D33_6F1AD6F9FEEB__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?