view src/htmlhelp.cpp @ 6:3e756069f215

change Makfile (static link gcc).
author pyon@macmini
date Sat, 16 Apr 2011 09:59:09 +0900
parents c174ac668e9f
children 3e045b68738a
line wrap: on
line source

// 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()
{
}