📄 thorclient2dlg.h
字号:
//ThorClient 802.1x (using WinPcap 3.2 alpha1)
//Download: http://thorqq.ys168.com
//E-mail: thorqq@163.com
//Author: Thorqq
/////////////////////////////////////////////////////////////
// ThorClient2Dlg.h : header file
//
#if !defined(AFX_THORCLIENT2DLG_H__34C86257_40B1_4D4C_AFC8_64AA1245F01C__INCLUDED_)
#define AFX_THORCLIENT2DLG_H__34C86257_40B1_4D4C_AFC8_64AA1245F01C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CThorClient2Dlg dialog
#include "dot1x.h"
#include "trayicon.h"
#include "datafile.h"
#include "global.h"
#include "pcap.h"
#include <afxtempl.h> //使用CArray类
#include "mycombobox.h"
typedef struct NicItem //保存网卡信息
{
int nItem;
char name[100];
char description[100];
unsigned char mac[6];
unsigned char ip[4];
}NICITEM;
class CThorClient2Dlg : public CDialog
{
// Construction
public:
void RenewIp();
void Offline();
void Online();
CThorClient2Dlg(CWnd* pParent = NULL); // standard constructor
void OnInitMenuPopup(CMenu *pPopupMenu, UINT nIndex,BOOL bSysMenu);
// Dialog Data
//{{AFX_DATA(CThorClient2Dlg)
enum { IDD = IDD_THORCLIENT2_DIALOG };
CMyComboBox m_nic;
CIPAddressCtrl m_ipaddress;
CString m_password;
CString m_username;
BOOL m_rempwd;
BOOL m_autologin;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CThorClient2Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CArray<NICITEM, NICITEM&>arrNicItem;
USERDATA UserData;
CTrayIcon trayIcon;
CDataFile DataFile;
CDot1X *Dot1X;
// Generated message map functions
//{{AFX_MSG(CThorClient2Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
afx_msg void OnDestroy();
afx_msg void OnButtonConnect();
afx_msg void OnButtonDisconnect();
afx_msg void OnButtonNetconfig();
afx_msg void OnButtonHelp();
afx_msg void OnButtonMini();
afx_msg void OnCheckAuto();
afx_msg void OnCheckSavepwd();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMenuOpen();
afx_msg void OnMenuConnect();
afx_msg void OnMenuDisconnect();
afx_msg void OnMenuAbout();
afx_msg void OnMenuitQuit();
afx_msg void OnDropdownNic();
afx_msg void OnSelchangeNic();
afx_msg void OnMenuNetconfig();
afx_msg void OnUpdateMenuConnect(CCmdUI* pCmdUI);
afx_msg void OnUpdateMenuDisconnect(CCmdUI* pCmdUI);
afx_msg void OnUpdateMenuNetconfig(CCmdUI* pCmdUI);
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_THORCLIENT2DLG_H__34C86257_40B1_4D4C_AFC8_64AA1245F01C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -