📄 form1.h
字号:
#pragma once
namespace Example
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Form1 摘要
///
/// 警告: 如果您更改该类的名称,则需要更改
/// 与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。 否则,
/// 设计器将不能与此窗体关联的
/// 本地化资源正确交互。
/// </summary>
public __gc class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::ImageList * imageList1;
private: System::Windows::Forms::TabControl * tabControl1;
private: System::Windows::Forms::TabPage * tabPage1;
private: System::Windows::Forms::TabPage * tabPage2;
private: System::Windows::Forms::TabPage * tabPage3;
private: System::ComponentModel::IContainer * components;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->components = new System::ComponentModel::Container();
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(Example::Form1));
this->imageList1 = new System::Windows::Forms::ImageList(this->components);
this->tabControl1 = new System::Windows::Forms::TabControl();
this->tabPage1 = new System::Windows::Forms::TabPage();
this->tabPage2 = new System::Windows::Forms::TabPage();
this->tabPage3 = new System::Windows::Forms::TabPage();
this->tabControl1->SuspendLayout();
this->SuspendLayout();
//
// imageList1
//
this->imageList1->ImageSize = System::Drawing::Size(16, 16);
this->imageList1->ImageStream = (__try_cast<System::Windows::Forms::ImageListStreamer * >(resources->GetObject(S"imageList1.ImageStream")));
this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
//
// tabControl1
//
this->tabControl1->Controls->Add(this->tabPage1);
this->tabControl1->Controls->Add(this->tabPage2);
this->tabControl1->Controls->Add(this->tabPage3);
this->tabControl1->Dock = System::Windows::Forms::DockStyle::Fill;
this->tabControl1->ImageList = this->imageList1;
this->tabControl1->Location = System::Drawing::Point(0, 0);
this->tabControl1->Name = S"tabControl1";
this->tabControl1->SelectedIndex = 0;
this->tabControl1->Size = System::Drawing::Size(360, 222);
this->tabControl1->TabIndex = 0;
//
// tabPage1
//
this->tabPage1->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"tabPage1.BackgroundImage")));
this->tabPage1->ImageIndex = 0;
this->tabPage1->Location = System::Drawing::Point(4, 23);
this->tabPage1->Name = S"tabPage1";
this->tabPage1->Size = System::Drawing::Size(352, 195);
this->tabPage1->TabIndex = 0;
this->tabPage1->Text = S"风光图片一";
//
// tabPage2
//
this->tabPage2->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"tabPage2.BackgroundImage")));
this->tabPage2->ImageIndex = 1;
this->tabPage2->Location = System::Drawing::Point(4, 23);
this->tabPage2->Name = S"tabPage2";
this->tabPage2->Size = System::Drawing::Size(352, 195);
this->tabPage2->TabIndex = 1;
this->tabPage2->Text = S"风光图片二";
//
// tabPage3
//
this->tabPage3->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"tabPage3.BackgroundImage")));
this->tabPage3->ImageIndex = 2;
this->tabPage3->Location = System::Drawing::Point(4, 23);
this->tabPage3->Name = S"tabPage3";
this->tabPage3->Size = System::Drawing::Size(352, 195);
this->tabPage3->TabIndex = 2;
this->tabPage3->Text = S"风光图片三";
//
// Form1
//
this->AutoScaleBaseSize = System::Drawing::Size(6, 14);
this->ClientSize = System::Drawing::Size(360, 222);
this->Controls->Add(this->tabControl1);
this->Name = S"Form1";
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
this->Text = S"演示创建标签页窗体";
this->tabControl1->ResumeLayout(false);
this->ResumeLayout(false);
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -