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

📄 scanlanview.h

📁 扫描局域网
💻 H
字号:
// ScanLANView.h : interface of the CScanLANView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SCANLANVIEW_H__D79605E5_76E0_49D4_8EB9_BF21428C2B44__INCLUDED_)
#define AFX_SCANLANVIEW_H__D79605E5_76E0_49D4_8EB9_BF21428C2B44__INCLUDED_

#include "Element.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_MY_NETMESSAGE WM_USER + 999
#define WM_MY_NETMESSAGE_D WM_USER + 888

#include "MySocket.h"
#include "DlgDefence.h"	// Added by ClassView
#include "DlgDetect.h"	// Added by ClassView

class CScanLANView : public CView
{
protected: // create from serialization only
	CScanLANView();
	DECLARE_DYNCREATE(CScanLANView)

// Attributes
public:
	CScanLANDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CScanLANView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void DealData(CString str);
	CString I2CStr(int i);
	CString UL2IP(unsigned long ulval);
	virtual ~CScanLANView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CScanLANView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMenuLesson();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnDisplayDefence();
	afx_msg void OnDisplayDetect();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	LRESULT	MyNETMessage(WPARAM wParam, LPARAM lParam);
	LRESULT	MyNETMessage_D(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
private:
	CDlgDetect m_dlgDetect;
	CDlgDefence m_dlgDefence;
	CString m_strCEdit;
	MessageDD m_MDD;
	MessDef2VC m_MDVC;
	CElement m_element[17][8];
	MyServerSocket m_srvrSocket;
	MyServerSocket m_srvrSocket_D;
	CString m_message;
	BOOL b_flag;
};

#ifndef _DEBUG  // debug version in ScanLANView.cpp
inline CScanLANDoc* CScanLANView::GetDocument()
   { return (CScanLANDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SCANLANVIEW_H__D79605E5_76E0_49D4_8EB9_BF21428C2B44__INCLUDED_)

⌨️ 快捷键说明

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