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
This commit is contained in:
@@ -60,6 +60,20 @@ bool
|
|||||||
wxExtHelpController::DisplayHelp(wxString const &relativeURL)
|
wxExtHelpController::DisplayHelp(wxString const &relativeURL)
|
||||||
{
|
{
|
||||||
wxBusyCursor b; // display a busy cursor
|
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;
|
wxString command;
|
||||||
|
|
||||||
if(m_BrowserIsNetscape) // try re-loading first
|
if(m_BrowserIsNetscape) // try re-loading first
|
||||||
@@ -85,6 +99,7 @@ wxExtHelpController::DisplayHelp(wxString const &relativeURL)
|
|||||||
command << _T(" file://")
|
command << _T(" file://")
|
||||||
<< m_MapFile << WXEXTHELP_SEPARATOR << relativeURL;
|
<< m_MapFile << WXEXTHELP_SEPARATOR << relativeURL;
|
||||||
return wxExecute(command) != 0;
|
return wxExecute(command) != 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user