minesweeper/minesweeper.cpp
bool MyApp::OnInit()
{
    // 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;

    // create the main application window
    MyFrame *frame = new MyFrame("Mine Sweeper");

    // and show it (the frames, unlike simple controls, are not shown when
    // created initially)
    frame->Show(true);

    // 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;
}
// 'Main program' equivalent: the program execution "starts" here
'Main program' equivalent: the program execution "starts" here
' Main program ' equivalent : the program execution " starts " here
bool MyApp::OnInit()
{
    if ( !wxApp::OnInit() )
        return false;
    MyFrame *frame = new MyFrame("Mine Sweeper");
    frame->Show(true);
    return true;
}
bool MyApp :: OnInit ( ) { if ( ! wxApp :: OnInit ( ) ) return false ; MyFrame * frame = new MyFrame ( " " ) ; frame -> Show ( true ) ; return true ; }
'Main program' equivalent: the program execution "starts" here
' Main program ' equivalent : the program execution " starts " here
// 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 // 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.