From 6e5fefdf863aa639a1f763f88232e2ef3e598e15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Mon, 14 Jun 1999 15:47:50 +0000 Subject: [PATCH] Should work for wxMSW, now. Cannot test this myself, though. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/helpext.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 } -- 2.45.2