📄 staticmac.h
字号:
#if !defined(AFX_STATICMAC_H__DA72EF92_46EC_11D6_BF27_880337144B48__INCLUDED_)
#define AFX_STATICMAC_H__DA72EF92_46EC_11D6_BF27_880337144B48__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StaticMAC.h : header file
//
#include "ks95mspi.h"
/////////////////////////////////////////////////////////////////////////////
// CStaticMAC dialog
class CStaticMAC : public CPropertyPage
{
DECLARE_DYNCREATE(CStaticMAC)
// Construction
public:
CStaticMAC();
~CStaticMAC();
void GetStaticMACBytes ( int iEntry, BYTE *bByte8, BYTE *bByte7, WORD wMACBytes[] );
int CStaticMAC::ParseMACAddress ( CString *sBuf, WORD *wMACByte );
int CStaticMAC::WriteToStaticMACTable ( WORD elem1, DWORD elem2, DWORD elem3 );
// Dialog Data
//{{AFX_DATA(CStaticMAC)
enum { IDD = IDD_STATICMAC_DIALOG };
int m_iVLAN[SMACTABCOUNT];
CEdit m_cMACAdd [SMACTABCOUNT * MACADDRESSLEN];
CString m_sMACAdd [SMACTABCOUNT * MACADDRESSLEN];
WORD m_wMACAdd [SMACTABCOUNT * MACADDRESSLEN];
BOOL m_bEnable[SMACTABCOUNT];
BOOL m_bPortToForward [SMACTABCOUNT * PORTCOUNT ];
// NOTE - ClassWizard will add data members here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CStaticMAC)
public:
virtual BOOL OnSetActive();
virtual BOOL OnApply();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CStaticMAC)
// NOTE: the ClassWizard will add member functions here
virtual BOOL OnInitDialog();
afx_msg void OnUpdate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STATICMAC_H__DA72EF92_46EC_11D6_BF27_880337144B48__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -