-
Notifications
You must be signed in to change notification settings - Fork 1
/
CWndMain.h
152 lines (135 loc) · 5.07 KB
/
CWndMain.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#pragma once
#include "CClient3270.h"
namespace WinTN3270 {
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>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class CWndMain : public System::Windows::Forms::Form
{
public:
CWndMain(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~CWndMain()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::MenuStrip^ mnuMain;
private: System::Windows::Forms::StatusStrip^ sbrMain;
protected:
protected:
private: System::Windows::Forms::ToolStrip^ tlbMain;
private: System::Windows::Forms::PictureBox^ pbxCanvas;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->mnuMain = (gcnew System::Windows::Forms::MenuStrip());
this->sbrMain = (gcnew System::Windows::Forms::StatusStrip());
this->tlbMain = (gcnew System::Windows::Forms::ToolStrip());
this->pbxCanvas = (gcnew System::Windows::Forms::PictureBox());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pbxCanvas))->BeginInit();
this->SuspendLayout();
//
// mnuMain
//
this->mnuMain->Location = System::Drawing::Point(0, 0);
this->mnuMain->Name = L"mnuMain";
this->mnuMain->Size = System::Drawing::Size(817, 24);
this->mnuMain->TabIndex = 0;
this->mnuMain->Text = L"menuStrip1";
//
// sbrMain
//
this->sbrMain->Location = System::Drawing::Point(0, 539);
this->sbrMain->Name = L"sbrMain";
this->sbrMain->Size = System::Drawing::Size(817, 22);
this->sbrMain->TabIndex = 1;
this->sbrMain->Text = L"statusStrip1";
//
// tlbMain
//
this->tlbMain->Location = System::Drawing::Point(0, 24);
this->tlbMain->Name = L"tlbMain";
this->tlbMain->Size = System::Drawing::Size(817, 25);
this->tlbMain->TabIndex = 2;
this->tlbMain->Text = L"toolStrip1";
//
// pbxCanvas
//
this->pbxCanvas->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)
| System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->pbxCanvas->Location = System::Drawing::Point(0, 51);
this->pbxCanvas->Name = L"pbxCanvas";
this->pbxCanvas->Size = System::Drawing::Size(817, 485);
this->pbxCanvas->TabIndex = 3;
this->pbxCanvas->TabStop = false;
//
// CWndMain
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(817, 561);
this->Controls->Add(this->pbxCanvas);
this->Controls->Add(this->tlbMain);
this->Controls->Add(this->sbrMain);
this->Controls->Add(this->mnuMain);
this->MainMenuStrip = this->mnuMain;
this->Name = L"CWndMain";
this->Text = L"CWndMain";
this->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &CWndMain::CWndMain_KeyPress);
this->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &CWndMain::CWndMain_KeyDown);
this->Load += gcnew System::EventHandler(this, &CWndMain::CWndMain_Load);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pbxCanvas))->EndInit();
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: /* Private Member Attributes */
CClient3270^ m_mpClient;
private: /* Private Member Functions */
System::Void CWndMain_Load(System::Object^ sender, System::EventArgs^ e);
System::Void CWndMain_KeyDown(System::Object^ sender,
System::Windows::Forms::KeyEventArgs^ e);
System::Void CWndMain_KeyPress(System::Object^ sender,
System::Windows::Forms::KeyPressEventArgs^ e);
bool m_mpClient_CertPolicyError(
System::Security::Cryptography::X509Certificates::X509Certificate^ mpCertificate,
System::Security::Cryptography::X509Certificates::X509Chain^ mpChain,
System::Net::Security::SslPolicyErrors ePolicyErrors);
protected: /* Overrides */
virtual void OnPaint(PaintEventArgs^ e) override;
};
}