⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipcview.h

📁 TCP/IP and Windows 95. Sources from DDJ article
💻 H
字号:
// ipcview.h : interface of the CIpcView class
//
/////////////////////////////////////////////////////////////////////////////
#include "resource.h"
#include "chatnet.h"

class CIpcView : public CFormView
{
public: // create from serialization only
	CIpcView();
	CIpcView(UINT);
	void OnInitialUpdate(void);
	DECLARE_DYNCREATE(CIpcView)
	BOOL PrintMessage(LPSTR,LPSTR );
	BOOL PrintMessage(LPSTR);
	void 	GetUserName(void);
	LRESULT WindowProc(UINT, WPARAM, LPARAM);
	BOOL 	DisplayPacket(void);
	BOOL 	GetSendText(void);
	void 	ErrorBox(UINT );   
	void 	SetTitle(void);
public:
	//{{AFX_DATA(CIpcView)
	enum { IDD = IDR_MAINFRAME };
	//}}AFX_DATA

// Attributes
public:
	CIpcDoc* GetDocument();

// Operations
public:

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

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

// Generated message map functions
protected:
	//{{AFX_MSG(CIpcView)
	afx_msg void On1();
	afx_msg void On2();
	afx_msg void On3();
	afx_msg void On4();
	afx_msg void OnUserlist();
	afx_msg void OnUsername();
	afx_msg void OnEnter();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	UINT 		m_Channel;
	CChatNet	m_Net;
	CAddrList	*m_AddrList;
	char		m_UserName[100]; 
	BOOL		m_Write;
	CEdit		*m_Incoming;
	CEdit		*m_Outgoing;
};

//#ifndef _DEBUG  // debug version in ipcview.cpp
//inline CIpcDoc* CIpcView::GetDocument()
 //  { return (CIpcDoc*)m_pDocument; }
//#endif

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

⌨️ 快捷键说明

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