[EXPLORER-NEW]

* Implement a rudimentary "Help and Support" start menu item by launching the default browser with http://reactos.org/ as the URL.

svn path=/branches/shell-experiments/; revision=63638
This commit is contained in:
David Quintana 2014-06-23 22:08:33 +00:00
parent bcf5de9efc
commit 70d0028281

View file

@ -2640,9 +2640,34 @@ HandleTrayContextMenu:
break; break;
case IDM_SEARCH: case IDM_SEARCH:
case IDM_HELPANDSUPPORT:
break; break;
case IDM_HELPANDSUPPORT:
{
/* TODO: Implement properly */
LPCWSTR strSite = L"http://www.reactos.org/";
/* TODO: Make localizable */
LPCWSTR strCaption = L"Sorry";
LPCWSTR strMessage = L"ReactOS could not browse to '%s' (error %d). Please make sure there is a web browser installed.";
WCHAR tmpMessage[512];
/* TODO: Read from the registry */
LPCWSTR strVerb = NULL; /* default */
LPCWSTR strPath = strSite;
LPCWSTR strParams = NULL;
/* The return value is defined as HINSTANCE for backwards compatibility only, the cast is needed */
int result = (int) ShellExecuteW(hwnd, strVerb, strPath, strParams, NULL, SW_SHOWNORMAL);
if (result <= 32)
{
StringCchPrintfW(tmpMessage, 512, strMessage, strSite, result);
MessageBoxExW(hwnd, tmpMessage, strCaption, MB_OK, 0);
}
break;
}
case IDM_RUN: case IDM_RUN:
{ {
ITrayWindowImpl_DisplayRunFileDlg(This); ITrayWindowImpl_DisplayRunFileDlg(This);