mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:45:39 +00:00
[BROWSEUI] Enable the Disconnect Network Drive menu item. (#1522)
CORE-13516, CORE-13518
This commit is contained in:
parent
bf431dd278
commit
7e18b6d0eb
3 changed files with 2 additions and 4 deletions
|
@ -47,7 +47,7 @@ add_library(browseui MODULE
|
||||||
|
|
||||||
set_module_type(browseui win32dll UNICODE)
|
set_module_type(browseui win32dll UNICODE)
|
||||||
target_link_libraries(browseui shellbars uuid wine)
|
target_link_libraries(browseui shellbars uuid wine)
|
||||||
add_importlibs(browseui uxtheme shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32 advapi32 msvcrt kernel32 ntdll)
|
add_importlibs(browseui uxtheme shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32 advapi32 mpr msvcrt kernel32 ntdll)
|
||||||
add_pch(browseui precomp.h SOURCE)
|
add_pch(browseui precomp.h SOURCE)
|
||||||
add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
#include <wincon.h>
|
#include <wincon.h>
|
||||||
#include <wingdi.h>
|
#include <wingdi.h>
|
||||||
|
#include <winnetwk.h>
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <tlogstg.h>
|
#include <tlogstg.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
|
|
|
@ -3536,7 +3536,6 @@ LRESULT CShellBrowser::OnInitMenuPopup(UINT uMsg, WPARAM wParam, LPARAM lParam,
|
||||||
{
|
{
|
||||||
// FIXME: Remove once implemented
|
// FIXME: Remove once implemented
|
||||||
SHEnableMenuItem(theMenu, IDM_TOOLS_MAPNETWORKDRIVE, FALSE);
|
SHEnableMenuItem(theMenu, IDM_TOOLS_MAPNETWORKDRIVE, FALSE);
|
||||||
SHEnableMenuItem(theMenu, IDM_TOOLS_DISCONNECTNETWORKDRIVE, FALSE);
|
|
||||||
SHEnableMenuItem(theMenu, IDM_TOOLS_SYNCHRONIZE, FALSE);
|
SHEnableMenuItem(theMenu, IDM_TOOLS_SYNCHRONIZE, FALSE);
|
||||||
menuIndex = 4;
|
menuIndex = 4;
|
||||||
}
|
}
|
||||||
|
@ -3595,9 +3594,7 @@ LRESULT CShellBrowser::OnMapNetworkDrive(WORD wNotifyCode, WORD wID, HWND hWndCt
|
||||||
|
|
||||||
LRESULT CShellBrowser::OnDisconnectNetworkDrive(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
|
LRESULT CShellBrowser::OnDisconnectNetworkDrive(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
|
||||||
{
|
{
|
||||||
#ifndef __REACTOS__
|
|
||||||
WNetDisconnectDialog(m_hWnd, RESOURCETYPE_DISK);
|
WNetDisconnectDialog(m_hWnd, RESOURCETYPE_DISK);
|
||||||
#endif /* __REACTOS__ */
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue