- 【初心者歓迎】C/C++室 Ver.90【環境依存OK】
508 :デフォルトの名無しさん[]:2014/04/28(月) 20:08:02.05 ID:eYjErRwy - windows formに関してなのですが
//Form1.h private: PictureBox^ p; System::void Form1_Load(System::Object^ , Sytem::EventArgs^ e) { p = gcnew PictureBox; p->Dock = DockStyle::Fill; p->BackColor = Color::White; p->Paint += gcnew System::Windows::Forms::PaintEventHandler(this, &Form1::display); this->Controls->Add(p); } void display(Object^ s, System::Windows::Forms::PaintEventArgs^ e) { draw(e, p); } //graph.cpp void draw(System::Windows::Forms::PaintEventArgs^ e, System::Windows::Forms::PictureBox^ p) { System::Drawing::Graphics^ g = e->Graphics; //描画処理 } のように分割コンパイルしても大丈夫ですか(一応エラーは出なかったのですが)
|