// `Main program' equivalent, creating windows and returning main app frame
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
Args(argc, argv);
// Create the main frame window
frame = new MyFrame(NULL, wxT("wxWidgets OpenGL Isosurf Sample"),
wxDefaultPosition, wxDefaultSize);
- // Give it an icon
- frame->SetIcon(wxIcon(_T("mondrian")));
-
// Make a menubar
wxMenu *fileMenu = new wxMenu;
: wxFrame(frame, wxID_ANY, title, pos, size, style)
{
m_canvas = NULL;
- SetIcon(wxIcon(sample_xpm));
+ SetIcon(wxICON(sample));
}
MyFrame::~MyFrame()