📄 generalpage.h
字号:
#if !defined(AFX_GENERALPAGE_H__724CA2A9_1124_4419_ADF6_296B12FAA49B__INCLUDED_)
#define AFX_GENERALPAGE_H__724CA2A9_1124_4419_ADF6_296B12FAA49B__INCLUDED_
#include <afxdlgs.h>
#include "resource.h"
#include "ConfigGen.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GeneralPage.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// GeneralPage dialog
class GeneralPage : public CPropertyPage
{
DECLARE_DYNCREATE(GeneralPage)
// Construction
public:
GeneralPage();
~GeneralPage();
void InitDefaultGeneralSettings();
void PopulateGeneralPageSettings();
void StoreGeneralHeaderData(ConfigHeaderStruct *cfg_header_struct);
void LoadGeneralHeaderData(ConfigHeaderStruct *cfg_header_struct);
void SaveChanges(char *filename);
void LoadFile(char *filename);
void EnableSaveButton();
bool CheckAndAppendTCPExtension(char *filename);
void SetFileName(const char *fname);
void SaveAsFile(char *fname, bool dlgopen);
CString m_OriginalFile;
// Dialog Data
//{{AFX_DATA(GeneralPage)
enum { IDD = IDD_PROPPAGE_GENERAL };
// 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(GeneralPage)
public:
virtual void OnOK();
virtual void OnCancel();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(GeneralPage)
afx_msg void OnCheckProtoAll();
afx_msg void OnCheckAllStat();
afx_msg void OnCheckProtoTcp();
afx_msg void OnCheckProtoUdp();
afx_msg void OnCheckProtoIcmp();
afx_msg void OnCheckProtoDhcp();
afx_msg void OnCheckTcpStat();
afx_msg void OnCheckUdpStat();
afx_msg void OnCheckIpStat();
afx_msg void OnCheckIcmpStat();
afx_msg void OnCheckLinkStat();
afx_msg void OnButtonOpen();
afx_msg void OnButtonAddproject();
afx_msg void OnButtonSave();
afx_msg void OnChangeEditConfigFile();
afx_msg void OnButtonSaveas();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
bool m_proto_all;
bool m_proto_tcp;
bool m_proto_udp;
bool m_proto_icmp;
bool m_proto_dhcp;
bool m_stats_all;
bool m_stats_tcp;
bool m_stats_udp;
bool m_stats_ip;
bool m_stats_icmp;
bool m_stats_link;
bool m_multiple_networks;
char m_ConfigFile[512];
char *m_NameExt;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GENERALPAGE_H__724CA2A9_1124_4419_ADF6_296B12FAA49B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -