Logo Search packages:      
Sourcecode: xchm version File versions

bool CHMFrame::LoadCHM ( const wxString &  archive  ) 

Attempts to load a .chm file and display it's home page.

Parameters:
archive The .chm file name on disk.
Returns:
TRUE if the operation was successful.

Definition at line 448 of file chmframe.cpp.

References LoadBookmarks(), CHMHtmlWindow::LoadPage(), SaveBookmarks(), and UpdateCHMInfo().

Referenced by OnHistFile(), and CHMApp::OnInit().

{
      wxBusyCursor bc;
      bool rtn;
      SaveBookmarks();
      rtn = _html->LoadPage(wxString(wxT("file:")) + archive +
                  wxT("#chm:/"));

      UpdateCHMInfo();
      LoadBookmarks();

      return rtn;
}


Generated by  Doxygen 1.6.0   Back to index