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()

浙公网安备 33010602011771号