view src/htmlhelp.cpp @ 24:cbdfda601609 default tip

myframe layout finished.
author pyon@macmini
date Thu, 28 Jul 2011 23:04:36 +0900
parents 5ce7757b4350
children
line wrap: on
line source

// Filename   : htmlhelp.cpp
// Last Change: 01-Jul-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(800,1000) );

	m_htmlWin->LoadPage( wxT("man/index.html") );
	//m_htmlWin->SetRelatedFrame( m_parent, wxT("The Searcher v2 - %s") );
	m_htmlWin->SetRelatedStatusBar( 0 );

}

// Destructor
HtmlHelpFrame::~HtmlHelpFrame()
{
}