/*
*Corpyright (c)2013,烟台大学计算机学院
*All right reseved.
*作者:张梦佳
*完成日期:2014年5月20日
*版本号:v1.0
*输入描述:
*问题描述:窗口程序!
*程序输出:
*问题分析:
*算法设计:
*/
#include <wx/wx.h>
class Simple : public wxFrame
{public:
Simple(const wxString& title);
};
Simple::Simple(const wxString& title)
: wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250, 150))
{
Centre();
}
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
Simple *simple = new Simple(wxT("Simple"));
simple->Show(true);
return true;
}
感悟:
看似简单,确实新的开始!