Code: Select all
// The main application class.
class TestApp : public wxApp
{
public:
virtual bool OnInit()
{
if (!wxApp::OnInit())
return false;
AppWindow * app_win = new AppWindow(wxT("App")); // This derives from wxFrame
new SplashVideo(wxT("/home/xargon/widescreen.avi"),
app_win, wxID_ANY); // Modal dialog based class showing a video
wxYield();
app_win->Show(true);
return true;
}
};
wxIMPLEMENT_APP(TestApp);