1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxHtml testing example
4 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx/wx.h".
12 #include <wx/wxprec.h>
18 // for all others, include the necessary headers (this file is usually all you
19 // need because it includes almost all "standard" wxWindows headers
25 #include <wx/wxhtml.h>
26 #if (( wxVERSION_NUMBER < 2100 ) || (( wxVERSION_NUMBER == 2100 ) && (wxBETA_NUMBER <= 4)))
27 #include <wx/imaggif.h>
29 #include <wx/config.h>
31 // ----------------------------------------------------------------------------
33 // ----------------------------------------------------------------------------
35 // Define a new application type, each program should derive a class from wxApp
36 class MyApp
: public wxApp
39 wxHtmlHelpController help
;
43 // override base class virtuals
44 // ----------------------------
46 // this one is called on application startup and is a good place for the app
47 // initialization (doing it here and not in the ctor allows to have an error
48 // return: if OnInit() returns false, the application terminates)
58 config
= new wxConfig("wxHTMLhelp");
60 wxImage::AddHandler(new wxPNGHandler
);
63 wxImage::AddHandler(new wxJPEGHandler
);
66 help
.UseConfig(config
);
67 help
.SetTempDir("tmp");
68 help
.AddBook("helpfiles/testing.hhp");
69 help
.Display("Main page");