📄 writerinfo.h
字号:
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace ClassRoom {
/// <summary>
/// WriterInfo 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class WriterInfo : public System::Windows::Forms::Form
{
public:
WriterInfo(void)
{
InitializeComponent();
countNumber = 3;
this->pictureBox1->Load(".\\Picture\\DSC00950.JPG");
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~WriterInfo()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TabControl^ tabControl1;
protected:
private: System::Windows::Forms::TabPage^ tabPage1;
private: System::Windows::Forms::PictureBox^ pictureBox1;
private: System::Windows::Forms::TabPage^ tabPage2;
private: System::Windows::Forms::TabPage^ tabPage3;
private: System::Windows::Forms::PictureBox^ pictureBox2;
private: System::Windows::Forms::Label^ label1;
protected:
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::PictureBox^ pictureBox3;
private: System::Windows::Forms::PictureBox^ pictureBox4;
int countNumber ;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(WriterInfo::typeid));
this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
this->pictureBox2 = (gcnew System::Windows::Forms::PictureBox());
this->label1 = (gcnew System::Windows::Forms::Label());
this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
this->pictureBox4 = (gcnew System::Windows::Forms::PictureBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->pictureBox3 = (gcnew System::Windows::Forms::PictureBox());
this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
this->tabControl1->SuspendLayout();
this->tabPage1->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox2))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->BeginInit();
this->tabPage2->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox4))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox3))->BeginInit();
this->SuspendLayout();
//
// 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->Font = (gcnew System::Drawing::Font(L"宋体", 10.5F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
this->tabControl1->ItemSize = System::Drawing::Size(72, 24);
this->tabControl1->Location = System::Drawing::Point(0, 0);
this->tabControl1->Name = L"tabControl1";
this->tabControl1->SelectedIndex = 0;
this->tabControl1->Size = System::Drawing::Size(695, 543);
this->tabControl1->TabIndex = 0;
//
// tabPage1
//
this->tabPage1->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(255)), static_cast<System::Int32>(static_cast<System::Byte>(224)),
static_cast<System::Int32>(static_cast<System::Byte>(192)));
this->tabPage1->Controls->Add(this->pictureBox2);
this->tabPage1->Controls->Add(this->label1);
this->tabPage1->Controls->Add(this->pictureBox1);
this->tabPage1->Font = (gcnew System::Drawing::Font(L"宋体", 10.5F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
this->tabPage1->ForeColor = System::Drawing::SystemColors::ActiveCaption;
this->tabPage1->Location = System::Drawing::Point(4, 28);
this->tabPage1->Name = L"tabPage1";
this->tabPage1->Padding = System::Windows::Forms::Padding(3);
this->tabPage1->Size = System::Drawing::Size(687, 511);
this->tabPage1->TabIndex = 0;
this->tabPage1->Text = L" 刘萌萌 ";
this->tabPage1->Click += gcnew System::EventHandler(this, &WriterInfo::tabPage1_Click);
//
// pictureBox2
//
this->pictureBox2->BackColor = System::Drawing::Color::Transparent;
this->pictureBox2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox2.Image")));
this->pictureBox2->Location = System::Drawing::Point(226, 349);
this->pictureBox2->Name = L"pictureBox2";
this->pictureBox2->Size = System::Drawing::Size(99, 122);
this->pictureBox2->TabIndex = 2;
this->pictureBox2->TabStop = false;
//
// label1
//
this->label1->AutoSize = true;
this->label1->BackColor = System::Drawing::Color::Transparent;
this->label1->Location = System::Drawing::Point(6, 22);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(196, 448);
this->label1->TabIndex = 1;
this->label1->Text = resources->GetString(L"label1.Text");
//
// pictureBox1
//
this->pictureBox1->BackColor = System::Drawing::Color::Transparent;
this->pictureBox1->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox1.Image")));
this->pictureBox1->Location = System::Drawing::Point(226, 1);
this->pictureBox1->Name = L"pictureBox1";
this->pictureBox1->Size = System::Drawing::Size(458, 344);
this->pictureBox1->TabIndex = 0;
this->pictureBox1->TabStop = false;
this->pictureBox1->Click += gcnew System::EventHandler(this, &WriterInfo::pictureBox1_Click);
//
// tabPage2
//
this->tabPage2->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(255)), static_cast<System::Int32>(static_cast<System::Byte>(255)),
static_cast<System::Int32>(static_cast<System::Byte>(192)));
this->tabPage2->Controls->Add(this->pictureBox4);
this->tabPage2->Controls->Add(this->label2);
this->tabPage2->Controls->Add(this->pictureBox3);
this->tabPage2->Location = System::Drawing::Point(4, 28);
this->tabPage2->Name = L"tabPage2";
this->tabPage2->Padding = System::Windows::Forms::Padding(3);
this->tabPage2->Size = System::Drawing::Size(687, 511);
this->tabPage2->TabIndex = 1;
this->tabPage2->Text = L" 郝琳娜 ";
//
// pictureBox4
//
this->pictureBox4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox4.Image")));
this->pictureBox4->Location = System::Drawing::Point(229, 353);
this->pictureBox4->Name = L"pictureBox4";
this->pictureBox4->Size = System::Drawing::Size(125, 150);
this->pictureBox4->TabIndex = 2;
this->pictureBox4->TabStop = false;
//
// label2
//
this->label2->AutoSize = true;
this->label2->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(255)), static_cast<System::Int32>(static_cast<System::Byte>(128)),
static_cast<System::Int32>(static_cast<System::Byte>(0)));
this->label2->Location = System::Drawing::Point(8, 16);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(217, 406);
this->label2->TabIndex = 1;
this->label2->Text = resources->GetString(L"label2.Text");
//
// pictureBox3
//
this->pictureBox3->BackgroundImage = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox3.BackgroundImage")));
this->pictureBox3->Location = System::Drawing::Point(229, 3);
this->pictureBox3->Name = L"pictureBox3";
this->pictureBox3->Size = System::Drawing::Size(458, 344);
this->pictureBox3->TabIndex = 0;
this->pictureBox3->TabStop = false;
//
// tabPage3
//
this->tabPage3->Location = System::Drawing::Point(4, 28);
this->tabPage3->Name = L"tabPage3";
this->tabPage3->Padding = System::Windows::Forms::Padding(3);
this->tabPage3->Size = System::Drawing::Size(687, 511);
this->tabPage3->TabIndex = 2;
this->tabPage3->Text = L" 于航 ";
this->tabPage3->UseVisualStyleBackColor = true;
//
// WriterInfo
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"$this.BackgroundImage")));
this->ClientSize = System::Drawing::Size(695, 543);
this->Controls->Add(this->tabControl1);
this->Name = L"WriterInfo";
this->Text = L"关于作者";
this->Load += gcnew System::EventHandler(this, &WriterInfo::WriterInfo_Load);
this->tabControl1->ResumeLayout(false);
this->tabPage1->ResumeLayout(false);
this->tabPage1->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox2))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->EndInit();
this->tabPage2->ResumeLayout(false);
this->tabPage2->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox4))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox3))->EndInit();
this->ResumeLayout(false);
}
#pragma endregion
private: System::Void pictureBox1_Click(System::Object^ sender, System::EventArgs^ e) {
if(countNumber % 3 == 0)
{
this->pictureBox1->Load(".\\Picture\\DSC00962.JPG");
countNumber++;
}
else if(countNumber % 3 == 1)
{
this->pictureBox1->Load(".\\Picture\\DSC01033.JPG");
countNumber++;
}
else if(countNumber % 3 == 2)
{
this->pictureBox1->Load(".\\Picture\\DSC00950.JPG");
countNumber++;
}
}
private: System::Void WriterInfo_Load(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void tabPage1_Click(System::Object^ sender, System::EventArgs^ e) {
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -