diff src/htmlhelp.cpp @ 0:c174ac668e9f

First commit ! (ver2.8)
author pyon@macmini
date Tue, 05 Apr 2011 18:44:57 +0900
parents
children 3e045b68738a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/htmlhelp.cpp	Tue Apr 05 18:44:57 2011 +0900
@@ -0,0 +1,39 @@
+// Filename   : htmlhelp.cpp
+// Last Change: 04-Mar-2011.
+//
+#include "common.h"
+#include "htmlhelp.h"
+
+// for all others, include the necessary headers (this file is usually all you
+// need because it includes almost all "standard" wxWidgets headers)
+#ifndef WX_PRECOMP
+    #include "wx/utils.h"
+#endif
+
+// resources
+// the application icon (under Windows and OS/2 it is in resources and even
+// though we could still include the XPM here it would be unused)
+#if !defined(__WXMSW__) && !defined(__WXPM__)
+    #include "../img/sample.xpm"
+#endif
+
+
+// frame constructor
+HtmlHelpFrame::HtmlHelpFrame(const wxString& title, wxWindowID id)
+       : wxFrame(NULL, id, title)
+{
+    // set the frame icon
+    SetIcon(wxICON(sample));
+	m_htmlWin = new wxHtmlWindow( this, ID_HELP, wxDefaultPosition, wxSize(380,200) );
+
+	m_htmlWin->LoadPage( wxT("man/index.html") );
+	//m_htmlWin->SetRelatedFrame( m_parent, wxT("The Searcher v2 - %s") );
+	m_htmlWin->SetRelatedStatusBar( 0 );
+
+}
+
+// Destructor
+HtmlHelpFrame::~HtmlHelpFrame()
+{
+}
+