X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e5fefdf863aa639a1f763f88232e2ef3e598e15..c0b042fce9be0fab67f229f35ffd117f4e1e0730:/src/generic/helpext.cpp diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index aba6fd516b..817b73c401 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -1,24 +1,42 @@ -/*-*- c++ -*-******************************************************** - * helpext.cpp - an external help controller for wxWindows * - * * - * (C) 1999 by Karsten Ballüder (Ballueder@usa.net) * - * * - * $Id$ - *******************************************************************/ +///////////////////////////////////////////////////////////////////////////// +// Name: helpext.cpp +// Purpose: an external help controller for wxWindows +// Author: Karsten Ballueder +// Modified by: +// Created: 04/01/98 +// RCS-ID: $Id$ +// Copyright: (c) Karsten Ballueder +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + #ifdef __GNUG__ # pragma implementation "wxexthlp.h" #endif -#include "wx/setup.h" -#include "wx/helpbase.h" -#include "wx/generic/helpext.h" -#include "wx/string.h" -#include "wx/utils.h" -#include "wx/list.h" -#include -#include -#include -#include +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + +#ifndef WX_PRECOMP + #include "wx/setup.h" + #include "wx/string.h" + #include "wx/utils.h" + #include "wx/list.h" + #include "wx/intl.h" +#endif + +#include "wx/helpbase.h" +#include "wx/generic/helpext.h" + +#include +#include +#include + +#ifndef __WINDOWS__ + #include +#endif IMPLEMENT_CLASS(wxExtHelpController, wxHTMLHelpControllerBase) @@ -63,8 +81,10 @@ wxExtHelpController::DisplayHelp(wxString const &relativeURL) #ifdef __WXMSW__ - bool bOk = (int)ShellExecute(NULL, "open", relativeURL.c_str(), - NULL, NULL, SW_SHOWNORMAL ) > 32; + wxString url; + url << m_MapFile << '\\' << relativeURL.BeforeFirst('#'); + bool bOk = (int)ShellExecute(NULL, "open", url, + NULL, NULL, SW_SHOWNORMAL ) > 32; if ( !bOk ) { wxLogSysError(_("Cannot open URL '%s'"), relativeURL.c_str());