📄 cmoduledlg.cpp
字号:
// CModuleDlg.cpp : implementation file
//
#include "stdafx.h"
#include "try4.h"
#include "CModuleDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern int gnScanOptions[5];
/////////////////////////////////////////////////////////////////////////////
// CModuleDlg dialog
CModuleDlg::CModuleDlg(CWnd* pParent /*=NULL*/)
: CDialog(CModuleDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CModuleDlg)
//}}AFX_DATA_INIT
}
void CModuleDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CModuleDlg)
DDX_Control(pDX, IDC_LIST, m_list);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CModuleDlg, CDialog)
//{{AFX_MSG_MAP(CModuleDlg)
ON_BN_CLICKED(IDC_BUTTON_CANCEL, OnButtonCancel)
ON_BN_CLICKED(IDC_BUTTON_OK, OnButtonOk)
ON_BN_CLICKED(IDC_BUTTON_SELECTALL, OnButtonSelectall)
ON_BN_CLICKED(IDC_BUTTON_CLEARALL, OnButtonClearall)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CModuleDlg message handlers
BOOL CModuleDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// m_list.SetCheckStyle(1);
m_list.AddString("路由信息");
m_list.AddString("开放端口");
m_list.AddString("netbios信息");
m_list.AddString("nt server弱口令");
m_list.AddString("cgi漏洞");
for(int i=0;i<m_list.GetCount();i++)
m_list.SetCheck(i,1);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CModuleDlg::OnButtonCancel()
{
// TODO: Add your control notification handler code here
CModuleDlg::OnCancel();
}
void CModuleDlg::OnButtonOk()
{
// TODO: Add your control notification handler code here
for(int i=0;i<m_list.GetCount();i++)
gnScanOptions[i]=m_list.GetCheck(i);
CModuleDlg::OnOK();
}
void CModuleDlg::OnButtonSelectall()
{
// TODO: Add your control notification handler code here
for(int i=0;i<m_list.GetCount();i++)
m_list.SetCheck(i,1);
}
void CModuleDlg::OnButtonClearall()
{
// TODO: Add your control notification handler code here
for(int i=0;i<m_list.GetCount();i++)
m_list.SetCheck(i,0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -