X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/925e9792d32e353233985f53a4845f154e455a58..197ab43d72571ecfd86c35f1832f063237775648:/samples/mobile/styles/styles.cpp?ds=sidebyside diff --git a/samples/mobile/styles/styles.cpp b/samples/mobile/styles/styles.cpp index ddef0c19e6..8042e2d636 100644 --- a/samples/mobile/styles/styles.cpp +++ b/samples/mobile/styles/styles.cpp @@ -5,10 +5,6 @@ // Copyright: ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ - #pragma implementation "styles.cpp" -#endif - // For compilers that support precompilation #include "wx/wxprec.h" @@ -21,6 +17,10 @@ // Include private headers #include "styles.h" +#ifndef __WXMSW__ + #include "../../sample.xpm" +#endif + //------------------------------------------------------------------------------ // MyFrame //------------------------------------------------------------------------------ @@ -35,6 +35,8 @@ MyFrame::MyFrame( wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style ) : wxFrame( parent, id, title, position, size, style ) { + SetIcon(wxICON(sample)); + // Create menu and status bar. CreateMyMenuBar(); #if wxUSE_STATUSBAR @@ -90,6 +92,9 @@ IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + wxInitAllImageHandlers(); SetVendorName(_T("Free world"));