X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..fcc9ca7f72b92d6b0a4eabe72f205d54480df72e:/samples/html/zip/zip.cpp diff --git a/samples/html/zip/zip.cpp b/samples/html/zip/zip.cpp index 3707e4f6f7..6363dfab85 100644 --- a/samples/html/zip/zip.cpp +++ b/samples/html/zip/zip.cpp @@ -1,6 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: test.cpp -// Purpose: wxHtml testing example +// Name: zip.cpp +// Purpose: wxHtml sample +// Author: ? +// Modified by: +// Created: ? +// RCS-ID: $Id$ +// Copyright: (c) wxWidgets team +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx/wx.h". @@ -20,6 +26,10 @@ #include "wx/html/htmlwin.h" #include "wx/fs_zip.h" +#ifndef __WXMSW__ + #include "../../sample.xpm" +#endif + // ---------------------------------------------------------------------------- // private classes // ---------------------------------------------------------------------------- @@ -97,6 +107,9 @@ IMPLEMENT_APP(MyApp) // `Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + #if wxUSE_LIBPNG wxImage::AddHandler(new wxPNGHandler); #endif @@ -130,8 +143,10 @@ wxHtmlWindow *html; // frame constructor MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) -: wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size) + : wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size) { + SetIcon(wxICON(sample)); + // create a menu bar wxMenu *menuFile = new wxMenu; wxMenu *menuNav = new wxMenu;