X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/87138c520ce5dc4d0268191074866e8bc300c984..7c5457867870a0a33951def66373f5a76ec3ae4a:/src/generic/helpext.cpp diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index 43b56b8b35..aba6fd516b 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -60,6 +60,20 @@ bool wxExtHelpController::DisplayHelp(wxString const &relativeURL) { wxBusyCursor b; // display a busy cursor + + +#ifdef __WXMSW__ + bool bOk = (int)ShellExecute(NULL, "open", relativeURL.c_str(), + NULL, NULL, SW_SHOWNORMAL ) > 32; + if ( !bOk ) + { + wxLogSysError(_("Cannot open URL '%s'"), relativeURL.c_str()); + return false; + } + else + return true; +#else + // assume UNIX wxString command; if(m_BrowserIsNetscape) // try re-loading first @@ -85,6 +99,7 @@ wxExtHelpController::DisplayHelp(wxString const &relativeURL) command << _T(" file://") << m_MapFile << WXEXTHELP_SEPARATOR << relativeURL; return wxExecute(command) != 0; +#endif }