use ShellExecuteEx() instead of ShellExecute() which doesn't exist under WinCE (closes #10201)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -960,16 +960,17 @@ bool wxLaunchDefaultApplication(const wxString& document, int flags)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#elif defined(__WXMSW__)
|
#elif defined(__WXMSW__)
|
||||||
const INT_PTR result = (INT_PTR)::ShellExecute
|
WinStruct<SHELLEXECUTEINFO> sei;
|
||||||
(
|
sei.lpFile = document.wx_str();
|
||||||
NULL, // parent window
|
sei.lpVerb = _T("open");
|
||||||
_T("open"),
|
sei.nShow = SW_SHOWDEFAULT;
|
||||||
document.wx_str(),
|
|
||||||
NULL, // parameters
|
// avoid Windows message box in case of error for consistency with
|
||||||
NULL, // working directory
|
// wxLaunchDefaultBrowser() even if don't show the error ourselves in this
|
||||||
SW_SHOWDEFAULT
|
// function
|
||||||
);
|
sei.fMask = SEE_MASK_FLAG_NO_UI;
|
||||||
if ( result > 32 )
|
|
||||||
|
if ( ::ShellExecuteEx(&sei) )
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user