Advertisement
Guest User

Untitled

a guest
Feb 4th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.59 KB | None | 0 0
  1. #pragma once
  2. #include "graphicsclass.h"
  3. #include "d3dclass.h"
  4. namespace Testing {
  5.  
  6.     using namespace System;
  7.     using namespace System::ComponentModel;
  8.     using namespace System::Collections;
  9.     using namespace System::Windows::Forms;
  10.     using namespace System::Data;
  11.     using namespace System::Drawing;
  12.     HRESULT hresult;
  13.     HWND hWnd;
  14.     SystemClass* systemClass;
  15.  
  16.     /// <summary>
  17.     /// Summary for Form1
  18.     /// </summary>
  19.     public ref class Form1 : public System::Windows::Forms::Form
  20.     {
  21.     public:
  22.         Form1(void)
  23.         {
  24.             //bool a;
  25.             InitializeComponent();
  26.             //GraphicsClass* graphicsClass;
  27.             //graphicsClass = new GraphicsClass;
  28.             D3DClass* D3D_class;
  29.             D3D_class = new D3DClass;
  30.             //systemClass = new SystemClass;
  31.             //a = systemClass->Initialize();
  32.             //InitializeD3D();
  33.  
  34.         }
  35.  
  36.     protected:
  37.         /// <summary>
  38.         /// Clean up any resources being used.
  39.         /// </summary>
  40.         ~Form1()
  41.         {
  42.             if (components)
  43.             {
  44.                 delete components;
  45.             }
  46.         }
  47.     private: System::Windows::Forms::MenuStrip^  menuStrip1;
  48.     protected:
  49.     private: System::Windows::Forms::ToolStripMenuItem^  fileToolStripMenuItem;
  50.     private: System::Windows::Forms::ToolStripMenuItem^  exitToolStripMenuItem;
  51.  
  52.     private:
  53.         /// <summary>
  54.         /// Required designer variable.
  55.         /// </summary>
  56.         System::ComponentModel::Container ^components;
  57.  
  58. #pragma region Windows Form Designer generated code
  59.         /// <summary>
  60.         /// Required method for Designer support - do not modify
  61.         /// the contents of this method with the code editor.
  62.         /// </summary>
  63.         void InitializeComponent(void)
  64.         {
  65.             this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
  66.             this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  67.             this->exitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  68.             this->menuStrip1->SuspendLayout();
  69.             this->SuspendLayout();
  70.             //
  71.             // menuStrip1
  72.             //
  73.             this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->fileToolStripMenuItem});
  74.             this->menuStrip1->Location = System::Drawing::Point(0, 0);
  75.             this->menuStrip1->Name = L"menuStrip1";
  76.             this->menuStrip1->Size = System::Drawing::Size(653, 24);
  77.             this->menuStrip1->TabIndex = 0;
  78.             this->menuStrip1->Text = L"menuStrip1";
  79.             //
  80.             // fileToolStripMenuItem
  81.             //
  82.             this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->exitToolStripMenuItem});
  83.             this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
  84.             this->fileToolStripMenuItem->Size = System::Drawing::Size(37, 20);
  85.             this->fileToolStripMenuItem->Text = L"&File";
  86.             //
  87.             // exitToolStripMenuItem
  88.             //
  89.             this->exitToolStripMenuItem->Name = L"exitToolStripMenuItem";
  90.             this->exitToolStripMenuItem->Size = System::Drawing::Size(152, 22);
  91.             this->exitToolStripMenuItem->Text = L"&Exit";
  92.             this->exitToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::exitToolStripMenuItem_Click);
  93.             //
  94.             // Form1
  95.             //
  96.             this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  97.             this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  98.             this->ClientSize = System::Drawing::Size(653, 485);
  99.             this->Controls->Add(this->menuStrip1);
  100.             this->MainMenuStrip = this->menuStrip1;
  101.             this->Name = L"Form1";
  102.             this->Text = L"Form1";
  103.             this->menuStrip1->ResumeLayout(false);
  104.             this->menuStrip1->PerformLayout();
  105.             this->ResumeLayout(false);
  106.             this->PerformLayout();
  107.  
  108.         }
  109. #pragma endregion
  110.     private: System::Void exitToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  111.  
  112.              }
  113.     };
  114. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement