replace "search computer" start menu entry by a "not yet implemented" message to avoid the crash because of the currently missing SHFindComputer() implementation in shell32.dll

svn path=/trunk/; revision=18375
This commit is contained in:
Martin Fuchs 2005-10-09 13:05:49 +00:00
parent 8ff67043ab
commit e42612ca97

View file

@ -2011,7 +2011,7 @@ int StartMenuHandler::Command(int id, int code)
// browse menu // browse menu
case IDC_NETWORK: case IDC_NETWORK:
#ifdef _ROS_ // to be removed when network will be implemented #ifdef _ROS_ ///@todo to be removed when network browsing will be implemented in shell namespace
MessageBox(0, TEXT("network not yet implemented"), ResString(IDS_TITLE), MB_OK); MessageBox(0, TEXT("network not yet implemented"), ResString(IDS_TITLE), MB_OK);
#else #else
CreateSubmenu(id, CSIDL_NETWORK, ResString(IDS_NETWORK)); CreateSubmenu(id, CSIDL_NETWORK, ResString(IDS_NETWORK));
@ -2062,11 +2062,13 @@ void StartMenuHandler::ShowSearchDialog()
void StartMenuHandler::ShowSearchComputer() void StartMenuHandler::ShowSearchComputer()
{ {
#ifndef _ROS_ ///@todo to be removed when SHFindComputer() will be implemented in shell32.dll
static DynamicFct<SHFINDCOMPUTER> SHFindComputer(TEXT("SHELL32"), 91); static DynamicFct<SHFINDCOMPUTER> SHFindComputer(TEXT("SHELL32"), 91);
if (SHFindComputer) if (SHFindComputer)
(*SHFindComputer)(NULL, NULL); (*SHFindComputer)(NULL, NULL);
else else
#endif
MessageBox(0, TEXT("SHFindComputer() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK); MessageBox(0, TEXT("SHFindComputer() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK);
} }