本文整理汇总了C++中MyFrame::Paint方法的典型用法代码示例。如果您正苦于以下问题:C++ MyFrame::Paint方法的具体用法?C++ MyFrame::Paint怎么用?C++ MyFrame::Paint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MyFrame
的用法示例。
在下文中一共展示了MyFrame::Paint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnInit
// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
{
wxInitAllImageHandlers();
wxBitmap splashbitmap;
if (splashbitmap.LoadFile("/opt/extras.ubuntu.com/azpazeta/media/splash.png", wxBITMAP_TYPE_PNG))
{
wxSplashScreen* splash = new wxSplashScreen(splashbitmap,
wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
6000, NULL, -1, wxDefaultPosition, wxSize(400,400),
wxSIMPLE_BORDER|wxSTAY_ON_TOP);
}
wxYield();
//ChrTaskBarIcon* icon = new ChrTaskBarIcon();
// call the base class initialization method, currently it only parses a
// few common command-line options but it could be do more in the future
if ( !wxApp::OnInit() )
return false;
SetAppName(wxT("Azpazeta"));
SetVendorName(wxT("Adrian Arroyo Calle para Divel"));
if(wxApp::argc>=2){
fachada=1;
wxString archivo=wxApp::argv[1].mb_str();
//int* newsavedlg=new SaveDialog::Cargar(wxString archivo);
SaveDialog* newsavedlg=new SaveDialog();
newsavedlg->Cargar(archivo);
newsavedlg->Destroy();
MyFrame *frame = new MyFrame("Azpazeta");
frame->Show(true);
frame->Load();
frame->Paint();
//if(city==4){MyFrame::Stage4();}
}else{ MyFrame *frame = new MyFrame("Azpazeta");
frame->Show(true);
frame->OnJugar();
frame->Paint();}
// create the main application window
// and show it (the frames, unlike simple controls, are not shown when
// created initially)
// success: wxApp::OnRun() will be called which will enter the main message
// loop and the application will run. If we returned false here, the
// application would exit immediately.
return true;
}