comparison src/htmlhelp.cpp @ 0:c174ac668e9f

First commit ! (ver2.8)
author pyon@macmini
date Tue, 05 Apr 2011 18:44:57 +0900
parents
children 3e045b68738a
comparison
equal deleted inserted replaced
-1:000000000000 0:c174ac668e9f
1 // Filename : htmlhelp.cpp
2 // Last Change: 04-Mar-2011.
3 //
4 #include "common.h"
5 #include "htmlhelp.h"
6
7 // for all others, include the necessary headers (this file is usually all you
8 // need because it includes almost all "standard" wxWidgets headers)
9 #ifndef WX_PRECOMP
10 #include "wx/utils.h"
11 #endif
12
13 // resources
14 // the application icon (under Windows and OS/2 it is in resources and even
15 // though we could still include the XPM here it would be unused)
16 #if !defined(__WXMSW__) && !defined(__WXPM__)
17 #include "../img/sample.xpm"
18 #endif
19
20
21 // frame constructor
22 HtmlHelpFrame::HtmlHelpFrame(const wxString& title, wxWindowID id)
23 : wxFrame(NULL, id, title)
24 {
25 // set the frame icon
26 SetIcon(wxICON(sample));
27 m_htmlWin = new wxHtmlWindow( this, ID_HELP, wxDefaultPosition, wxSize(380,200) );
28
29 m_htmlWin->LoadPage( wxT("man/index.html") );
30 //m_htmlWin->SetRelatedFrame( m_parent, wxT("The Searcher v2 - %s") );
31 m_htmlWin->SetRelatedStatusBar( 0 );
32
33 }
34
35 // Destructor
36 HtmlHelpFrame::~HtmlHelpFrame()
37 {
38 }
39