📄 frmmain.h
字号:
this->tabPage1->BackColor = System::Drawing::Color::WhiteSmoke;
this->tabPage1->Controls->Add(this->label2);
this->tabPage1->Controls->Add(this->dgvOpt);
this->tabPage1->ImageKey = L"pdm32.png";
this->tabPage1->Location = System::Drawing::Point(4, 31);
this->tabPage1->Name = L"tabPage1";
this->tabPage1->Padding = System::Windows::Forms::Padding(3);
this->tabPage1->Size = System::Drawing::Size(661, 120);
this->tabPage1->TabIndex = 0;
this->tabPage1->Text = L"详细设置";
//
// label2
//
this->label2->AutoSize = true;
this->label2->BackColor = System::Drawing::Color::Transparent;
this->label2->ForeColor = System::Drawing::Color::DimGray;
this->label2->Location = System::Drawing::Point(6, 105);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(617, 12);
this->label2->TabIndex = 1;
this->label2->Text = L"说明:针对当前适配器已设置多IP,多网段的情况进行详细设置,请选择要捕获的网段,设置上下界、捕获用源IP。";
//
// dgvOpt
//
this->dgvOpt->AllowUserToAddRows = false;
this->dgvOpt->AllowUserToDeleteRows = false;
this->dgvOpt->AllowUserToResizeRows = false;
this->dgvOpt->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->dgvOpt->AutoGenerateColumns = false;
this->dgvOpt->BackgroundColor = System::Drawing::Color::WhiteSmoke;
this->dgvOpt->BorderStyle = System::Windows::Forms::BorderStyle::None;
dataGridViewCellStyle1->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleCenter;
dataGridViewCellStyle1->BackColor = System::Drawing::SystemColors::Control;
dataGridViewCellStyle1->Font = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
dataGridViewCellStyle1->ForeColor = System::Drawing::SystemColors::WindowText;
dataGridViewCellStyle1->SelectionBackColor = System::Drawing::SystemColors::Highlight;
dataGridViewCellStyle1->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
dataGridViewCellStyle1->WrapMode = System::Windows::Forms::DataGridViewTriState::False;
this->dgvOpt->ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this->dgvOpt->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::DisableResizing;
this->dgvOpt->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(6) {this->Col1, this->Col2,
this->Col6, this->Col3, this->Col4, this->Col5});
this->dgvOpt->DataMember = L"Range";
this->dgvOpt->DataSource = this->dsAll;
dataGridViewCellStyle4->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleCenter;
dataGridViewCellStyle4->BackColor = System::Drawing::SystemColors::Window;
dataGridViewCellStyle4->Font = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
dataGridViewCellStyle4->ForeColor = System::Drawing::SystemColors::ControlText;
dataGridViewCellStyle4->SelectionBackColor = System::Drawing::SystemColors::Window;
dataGridViewCellStyle4->SelectionForeColor = System::Drawing::SystemColors::ControlText;
dataGridViewCellStyle4->WrapMode = System::Windows::Forms::DataGridViewTriState::False;
this->dgvOpt->DefaultCellStyle = dataGridViewCellStyle4;
this->dgvOpt->EditMode = System::Windows::Forms::DataGridViewEditMode::EditOnEnter;
this->dgvOpt->Location = System::Drawing::Point(3, 3);
this->dgvOpt->MultiSelect = false;
this->dgvOpt->Name = L"dgvOpt";
this->dgvOpt->RowHeadersVisible = false;
this->dgvOpt->RowTemplate->Height = 23;
this->dgvOpt->Size = System::Drawing::Size(655, 99);
this->dgvOpt->TabIndex = 0;
this->dgvOpt->CellBeginEdit += gcnew System::Windows::Forms::DataGridViewCellCancelEventHandler(this, &frmMain::dgvOpt_CellBeginEdit);
this->dgvOpt->CellEndEdit += gcnew System::Windows::Forms::DataGridViewCellEventHandler(this, &frmMain::dgvOpt_CellEndEdit);
//
// dsAll
//
this->dsAll->DataSetName = L"NewDataSet";
this->dsAll->Tables->AddRange(gcnew cli::array< System::Data::DataTable^ >(1) {this->dtRange});
//
// dtRange
//
this->dtRange->Columns->AddRange(gcnew cli::array< System::Data::DataColumn^ >(8) {this->dcChoose, this->dcRange, this->dcRangeL,
this->dcRangeH, this->dcIPAddr, this->dcIPMask, this->dataColumn1, this->dataColumn3});
cli::array< System::String^ >^ __mcTemp__1 = gcnew cli::array< System::String^ >(2) {L"ColRange", L"ColIPMask"};
this->dtRange->Constraints->AddRange(gcnew cli::array< System::Data::Constraint^ >(1) {(gcnew System::Data::UniqueConstraint(L"Constraint1",
__mcTemp__1, true))});
this->dtRange->PrimaryKey = gcnew cli::array< System::Data::DataColumn^ >(2) {this->dcRange, this->dcIPMask};
this->dtRange->TableName = L"Range";
//
// dcChoose
//
this->dcChoose->Caption = L"选择";
this->dcChoose->ColumnName = L"ColChoose";
this->dcChoose->DataType = System::Boolean::typeid;
this->dcChoose->DefaultValue = false;
//
// dcRange
//
this->dcRange->AllowDBNull = false;
this->dcRange->Caption = L"所属网段";
this->dcRange->ColumnName = L"ColRange";
//
// dcRangeL
//
this->dcRangeL->Caption = L"区间下界";
this->dcRangeL->ColumnName = L"ColRangeL";
//
// dcRangeH
//
this->dcRangeH->Caption = L"区间上界";
this->dcRangeH->ColumnName = L"ColRangeH";
//
// dcIPAddr
//
this->dcIPAddr->Caption = L"当前设备IP";
this->dcIPAddr->ColumnName = L"ColIPAddr";
//
// dcIPMask
//
this->dcIPMask->AllowDBNull = false;
this->dcIPMask->Caption = L"网段掩码";
this->dcIPMask->ColumnName = L"ColIPMask";
//
// dataColumn1
//
this->dataColumn1->Caption = L"ColL";
this->dataColumn1->ColumnName = L"ColL";
this->dataColumn1->ReadOnly = true;
//
// dataColumn3
//
this->dataColumn3->ColumnName = L"ColH";
this->dataColumn3->ReadOnly = true;
//
// tabPage2
//
this->tabPage2->BackColor = System::Drawing::Color::WhiteSmoke;
this->tabPage2->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
this->tabPage2->Controls->Add(this->txtDev);
this->tabPage2->ImageKey = L"webX2.png";
this->tabPage2->Location = System::Drawing::Point(4, 31);
this->tabPage2->Name = L"tabPage2";
this->tabPage2->Padding = System::Windows::Forms::Padding(3);
this->tabPage2->Size = System::Drawing::Size(661, 120);
this->tabPage2->TabIndex = 1;
this->tabPage2->Text = L"设备信息";
//
// txtDev
//
this->txtDev->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->txtDev->BackColor = System::Drawing::Color::WhiteSmoke;
this->txtDev->BorderStyle = System::Windows::Forms::BorderStyle::None;
this->txtDev->Cursor = System::Windows::Forms::Cursors::Default;
this->txtDev->Font = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
this->txtDev->ForeColor = System::Drawing::SystemColors::InfoText;
this->txtDev->Location = System::Drawing::Point(23, 0);
this->txtDev->Multiline = true;
this->txtDev->Name = L"txtDev";
this->txtDev->ReadOnly = true;
this->txtDev->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
this->txtDev->Size = System::Drawing::Size(635, 118);
this->txtDev->TabIndex = 1;
//
// buttAutoSel
//
this->buttAutoSel->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Right));
this->buttAutoSel->Cursor = System::Windows::Forms::Cursors::Hand;
this->buttAutoSel->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->buttAutoSel->Location = System::Drawing::Point(574, 19);
this->buttAutoSel->Name = L"buttAutoSel";
this->buttAutoSel->Size = System::Drawing::Size(108, 23);
this->buttAutoSel->TabIndex = 4;
this->buttAutoSel->Text = L"自动选择";
this->buttAutoSel->UseVisualStyleBackColor = true;
this->buttAutoSel->Click += gcnew System::EventHandler(this, &frmMain::buttAutoSel_Click);
//
// cboxDev
//
this->cboxDev->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->cboxDev->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->cboxDev->FormattingEnabled = true;
this->cboxDev->Location = System::Drawing::Point(70, 20);
this->cboxDev->Name = L"cboxDev";
this->cboxDev->Size = System::Drawing::Size(498, 20);
this->cboxDev->TabIndex = 3;
this->cboxDev->SelectedIndexChanged += gcnew System::EventHandler(this, &frmMain::cboxDev_SelectedIndexChanged);
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(11, 24);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(53, 12);
this->label1->TabIndex = 2;
this->label1->Text = L"设备列表";
//
// groupBox2
//
this->groupBox2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->groupBox2->BackColor = System::Drawing::Color::Transparent;
this->groupBox2->Controls->Add(this->labStatus);
this->groupBox2->Controls->Add(this->buttClear);
this->groupBox2->Controls->Add(this->buttSave);
this->groupBox2->Controls->Add(this->buttStart);
this->groupBox2->Location = System::Drawing::Point(9, 234);
this->groupBox2->Name = L"groupBox2";
this->groupBox2->Size = System::Drawing::Size(698, 53);
this->groupBox2->TabIndex = 5;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"控制台";
//
// labStatus
//
this->labStatus->AutoSize = true;
this->labStatus->Font = (gcnew System::Drawing::Font(L"宋体", 10.5F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
this->labStatus->ForeColor = System::Drawing::Color::SteelBlue;
this->labStatus->Location = System::Drawing::Point(363, 26);
this->labStatus->Name = L"labStatus";
this->labStatus->Size = System::Drawing::Size(35, 14);
this->labStatus->TabIndex = 3;
this->labStatus->Text = L" ";
//
// buttClear
//
this->buttClear->Cursor = System::Windows::Forms::Cursors::Hand;
this->buttClear->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->buttClear->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
this->buttClear->ImageIndex = 1;
this->buttClear->ImageList = this->imageList1;
this->buttClear->Location = System::Drawing::Point(240, 20);
this->buttClear->Name = L"buttClear";
this->buttClear->Size = System::Drawing::Size(105, 27);
this->buttClear->TabIndex = 2;
this->buttClear->Text = L" 清除列表";
this->buttClear->UseVisualStyleBackColor = true;
this->buttClear->Click += gcnew System::EventHandler(this, &frmMain::buttClear_Click);
//
// buttSave
//
this->buttSave->Cursor = System::Windows::Forms::Cursors::Hand;
this->buttSave->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->buttSave->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
this->buttSave->ImageIndex = 2;
this->buttSave->ImageList = this->imageList1;
this->buttSave->Location = System::Drawing::Point(136, 20);
this->buttSave->Name = L"buttSave";
this->buttSave->Size = System::Drawing::Size(105, 27);
this->buttSave->TabIndex = 2;
this->buttSave->Text = L" 保存列表";
this->buttSave->UseVisualStyleBackColor = true;
this->buttSave->Click += gcnew System::EventHandler(this, &frmMain::buttSave_Click);
//
// lvMain
//
this->lvMain->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->lvMain->BackColor = System::Drawing::Color::WhiteSmoke;
this->lvMain->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(5) {this->colHeader1, this->colHeader2,
this->colHeader3, this->colHeader4, this->colHeader5});
this->lvMain->FullRowSelect = true;
this->lvMain->LabelWrap = false;
this->lvMain->Location = System::Drawing::Point(9, 293);
this->lvMain->MultiSelect = false;
this->lvMain->Name = L"lvMain";
this->lvMain->Size = System::Drawing::Size(698, 186);
this->lvMain->TabIndex = 3;
this->lvMain->UseCompatibleStateImageBehavior = false;
this->lvMain->View = System::Windows::Forms::View::Details;
//
// colHeader1
//
this->colHeader1->Text = L"响应时间";
this->colHeader1->Width = 70;
//
// colHeader2
//
this->colHeader2->Text = L"所属网段";
this->colHeader2->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
this->colHeader2->Width = 120;
//
// colHeader3
//
this->colHeader3->Text = L"子网掩码";
this->colHeader3->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
this->colHeader3->Width = 120;
//
// colHeader4
//
this->colHeader4->Text = L"IP地址";
this->colHeader4->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
this->colHeader4->Width = 192;
//
// colHeader5
//
this->colHeader5->Text = L"MAC地址";
this->colHeader5->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
this->colHeader5->Width = 192;
//
// statusStrip1
//
this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->toolStripStatusLabel1});
this->statusStrip1->Location = System::Drawing::Point(0, 482);
this->statusStrip1->Name = L"statusStrip1";
this->statusStrip1->Size = System::Drawing::Size(716, 26);
this->statusStrip1->TabIndex = 4;
this->statusStrip1->Text = L"statusStrip1";
//
// toolStripStatusLabel1
//
this->toolStripStatusLabel1->BackColor = System::Drawing::Color::Transparent;
this->toolStripStatusLabel1->BorderSides = static_cast<System::Windows::Forms::ToolStripStatusLabelBorderSides>((((System::Windows::Forms::ToolStripStatusLabelBorderSides::Left | System::Windows::Forms::ToolStripStatusLabelBorderSides::Top)
| System::Windows::Forms::ToolStripStatusLabelBorderSides::Right)
| System::Windows::Forms::ToolStripStatusLabelBorderSides::Bottom));
this->toolStripStatusLabel1->BorderStyle = System::Windows::Forms::Border3DStyle::SunkenOuter;
this->toolStripStatusLabel1->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Text;
this->toolStripStatusLabel1->Name = L"toolStripStatusLabel1";
this->toolStripStatusLabel1->Size = System::Drawing::Size(701, 21);
this->toolStripStatusLabel1->Spring = true;
this->toolStripStatusLabel1->Text = L" 欢迎使用ArpWinPcap,您可以使用本软体选择任何一个已安装的网络适配器对多个网段捕获所选网段内的ARP列表。";
this->toolStripStatusLabel1->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
//
// colChooseDataGridViewCheckBoxColumn
//
this->colChooseDataGridViewCheckBoxColumn->DataPropertyName = L"ColChoose";
this->colChooseDataGridViewCheckBoxColumn->HeaderText = L"ColChoose";
this->colChooseDataGridViewCheckBoxColumn->Name = L"colChooseDataGridViewCheckBoxColumn";
//
// colRangeDataGridViewTextBoxColumn
//
this->colRangeDataGridViewTextBoxColumn->DataPropertyName = L"ColRange";
this->colRangeDataGridViewTextBoxColumn->HeaderText = L"ColRange";
this->colRangeDataGridViewTextBoxColumn->Name = L"colRangeDataGridViewTextBoxColumn";
//
// colRangeLDataGridViewTextBoxColumn
//
this->colRangeLDataGridViewTextBoxColumn->DataPropertyName = L"ColRangeL";
this->colRangeLDataGridViewTextBoxColumn->HeaderText = L"ColRangeL";
this->colRangeLDataGridViewTextBoxColumn->Name = L"colRangeLDataGridViewTextBoxColumn";
//
// colRangeHDataGridViewTextBoxColumn
//
this->colRangeHDataGridViewTextBoxColumn->DataPropertyName = L"ColRangeH";
this->colRangeHDataGridViewTextBoxColumn->HeaderText = L"ColRangeH";
this->colRangeHDataGridViewTextBoxColumn->Name = L"colRangeHDataGridViewTextBoxColumn";
//
// colIPAddrDataGridViewTextBoxColumn
//
this->colIPAddrDataGridViewTextBoxColumn->DataPropertyName = L"ColIPAddr";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -