32 #include <wx/string.h>
34 #include <wx/html/htmlwin.h>
35 #include <wx/toolbar.h>
63 wxPoint position, wxSize size):
64 wxFrame(NULL, -1, title, position, size), html_(NULL) {
67 new wxToolBar(
this, -1, wxDefaultPosition, wxDefaultSize,
68 wxTB_HORIZONTAL | wxNO_BORDER | wxTB_TEXT);
72 if (wxImage::FindHandler(wxBITMAP_TYPE_PNG) == NULL) {
74 wxImage::AddHandler(
new wxPNGHandler);
89 "close_document.png");
92 icon.LoadFile(closeIconFile, wxBITMAP_TYPE_PNG);
94 toolbar->AddTool(wxID_CLOSE, _T(
"Close"), icon,
95 wxNullBitmap, wxITEM_NORMAL, _T(
"Close window"),
98 toolbar->AddSeparator();
100 icon.LoadFile(backIconFile, wxBITMAP_TYPE_PNG);
101 toolbar->AddTool(ID_BACK, _T(
"Back"), icon,
102 wxNullBitmap, wxITEM_NORMAL, _T(
"Back"));
104 icon.LoadFile(forwardIconFile, wxBITMAP_TYPE_PNG);
105 toolbar->AddTool(ID_FORWARD, _T(
"Forward"), icon,
106 wxNullBitmap, wxITEM_NORMAL, _T(
"Forward"));
112 html_ =
new wxHtmlWindow(
this);
113 html_->LoadPage(file);
146 html_->HistoryBack();
155 html_->HistoryForward();