1 /*************************************************************** 2 * Name: wxGuitarApp.cpp 3 * Purpose: Code for Application Class 4 * Author: Ivnish (INDT) (indt@mail.ru) 5 * Created: 2009-07-21 6 * Copyright: (c) 2009 Ivnish (INDT) 7 * License: GPLv3 8 **************************************************************/ 9 10 #include "wxGuitarApp.h" 11 12 //(*AppHeaders 13 #include "wxGuitarMain.h" 14 #include <wx/image.h> 15 //*) 16 17 IMPLEMENT_APP(wxGuitarApp); 18 OnInit()19bool wxGuitarApp::OnInit() 20 { 21 //(*AppInitialize 22 bool wxsOK = true; 23 wxInitAllImageHandlers(); 24 if ( wxsOK ) 25 { 26 wxGuitarFrame* Frame = new wxGuitarFrame(0); 27 Frame->Show(); 28 SetTopWindow(Frame); 29 } 30 //*) 31 return wxsOK; 32 33 } 34