환경 설정 및 Hello World 샘플


MyFrame.h
#pragma  once

#include  <wx/wx.h>

class  MyFrame:public  wxFrame
{
public:
    MyFrame(const  wxString& title);
    ~MyFrame(void);
};

MyFrame.cpp
#include  "MyFrame.h"


MyFrame::MyFrame(const  wxString& title)
    :wxFrame(NULL,wxID_ANY,title)
{
   new  wxPanel(this);
}


MyFrame::~MyFrame(void)
{
}

MyApp.h

#include  <wx/wx.h>

class  MyApp:public  wxApp
{
public:
    MyApp(void);
    ~MyApp(void);

   virtual  bool OnInit();
};

DECLARE_APP(MyApp);

MyApp.cpp
#include  "MyApp.h"
#include  "MyFrame.h"

IMPLEMENT_APP(MyApp);

MyApp::MyApp(void)
{
}


MyApp::~MyApp(void)
{
}



bool 
MyApp::OnInit(){
   wxFrame* frame = new  MyFrame("Hello World");
    frame->Show(true);

   return  true;
}

- 목록:

2 thoughts on “wxPaintDC 이해하기

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>