wxWidgets 入门

#include <wx/wxprec.h>
#ifndef WX_PRECOMP    
#include <wx/wx.h>
#endif

#include "FrmMain.h"

class MyApp : public wxApp{
public:
	virtual bool OnInit();
};

bool MyApp::OnInit()
{

	//wxMessageBox("Hello world");
	FrmMain *m_frm = new FrmMain(NULL);
	m_frm->Show();


	return true;
}
DECLARE_APP(MyApp)  //定义APP入口
IMPLEMENT_APP(MyApp)  //使用 MyApp& 	wxGetApp()

  

posted @ 2017-11-24 11:12  微笑的''80  阅读(167)  评论(0)    收藏  举报