implement network connect and disconnect dialogs

svn path=/trunk/; revision=15261
This commit is contained in:
Martin Fuchs 2005-05-13 14:48:10 +00:00
parent 37de341023
commit 9759ec3705
17 changed files with 44 additions and 33 deletions

View file

@ -28,7 +28,8 @@ TARGET_SDKLIBS = \
comdlg32.a \
ole32.a \
oleaut32.a \
shell32.a
shell32.a \
mpr.a
TARGET_GCCLIBS := uuid

View file

@ -64,8 +64,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Skapa systemdisk...", -1 /*TODO*/
#endif
MENUITEM SEPARATOR
MENUITEM "Anslut &Nätverksenhet", 252
MENUITEM "&Koppla ifrån Nätverksenhet", 253
MENUITEM "Anslut &Nätverksenhet", ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Koppla ifrån Nätverksenhet", ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Dela ut...", 254
MENUITEM "&Ta bort utdelning...", 255

View file

@ -63,8 +63,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Vytvoøit systemový disk...", -1 /*TODO*/
#endif
MENUITEM SEPARATOR
MENUITEM "Připojit &síťové zařízení" , 252
MENUITEM "&Odpojit &síťové zařízení" , 253
MENUITEM "Připojit &síťové zařízení" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Odpojit &síťové zařízení" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Sdílet jako..." , 254
MENUITEM "&Odstranit sdílení..." , 255

View file

@ -61,8 +61,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "...", -1 /*TODO*/
#endif
MENUITEM SEPARATOR
MENUITEM "Netzwerklaufwerk &verbinden..." , 252
MENUITEM "Netzwerklaufwerk &trennen..." , 253
MENUITEM "Netzwerklaufwerk &verbinden..." , ID_CONNECT_NETWORK_DRIVE
MENUITEM "Netzwerklaufwerk &trennen..." , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "F&reigeben als..." , 254
MENUITEM "Freigabe been&den..." , 255

View file

@ -65,8 +65,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Make System Disk...", -1 /*TODO*/
#endif
MENUITEM SEPARATOR
MENUITEM "Connect &Network Drive" , 252
MENUITEM "&Disconnect Network Drive" , 253
MENUITEM "Connect &Network Drive" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Disconnect Network Drive" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Share as..." , 254
MENUITEM "&Remove Share..." , 255

View file

@ -61,8 +61,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Hacer disco de sistema...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "C&onectar unidad de red" , 252
MENUITEM "&Desconectar unidad de red" , 253
MENUITEM "C&onectar unidad de red" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Desconectar unidad de red" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Co&mpartir como..." , 254
MENUITEM "&Eliminar compartido..." , 255

View file

@ -64,8 +64,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Créer un disque *système...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "Connecter un lecteur &réseau" , 252
MENUITEM "&Déconnecter un lecteur réseau" , 253
MENUITEM "Connecter un lecteur &réseau" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Déconnecter un lecteur réseau" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "&Partager..." , 254
MENUITEM "Cesser de parta&ger" , 255

View file

@ -64,8 +64,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Rendszerlemez készítése...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "&Hálózati meghajtó csatlakoztatása" , 252
MENUITEM "Hálózati meghajtó leválasztása" , 253
MENUITEM "&Hálózati meghajtó csatlakoztatása" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "Hálózati meghajtó leválasztása" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Megosztás..." , 254
MENUITEM "Megosztás &megszüntetése..." , 255

View file

@ -64,8 +64,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Crea Disco di Sistema...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "Connetti & Drive di Rete" , 252
MENUITEM "&Disconnetti Drive di Rete" , 253
MENUITEM "Connetti & Drive di Rete" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Disconnetti Drive di Rete" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Condividi come..." , 254
MENUITEM "&Rimuovi condivisione..." , 255

View file

@ -60,8 +60,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Systeemdisk maken...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "Verbinding &maken met netwerkchijf" , 252
MENUITEM "Verbinding &verbreken met netwerkschijf" , 253
MENUITEM "Verbinding &maken met netwerkchijf" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "Verbinding &verbreken met netwerkschijf" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Schijf &delen..." , 254
MENUITEM "Delen &ongedaan maken..." , 255

View file

@ -63,8 +63,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Gerar disco de sistema...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "Conecta&r unidade de rede" , 252
MENUITEM "&Desconectar unidade de rede" , 253
MENUITEM "Conecta&r unidade de rede" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Desconectar unidade de rede" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "C&ompartilhar como..." , 254
MENUITEM "&Remover compartilhamento..." , 255
@ -191,8 +191,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Gerar disco de sistema...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "Conecta&r unidade de rede" , 252
MENUITEM "&Desconectar unidade de rede" , 253
MENUITEM "Conecta&r unidade de rede" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Desconectar unidade de rede" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "&Partilhar como..." , 254
MENUITEM "&Remover partilha..." , 255

View file

@ -43,6 +43,8 @@
#define ID_EXECUTE 105
#define ID_FILE_MOVE 106
#define ID_FILE_EXIT 115
#define ID_CONNECT_NETWORK_DRIVE 252
#define ID_DISCONNECT_NETWORK_DRIVE 253
#define ID_VIEW_NAME 401
#define ID_VIEW_ALL_ATTRIBUTES 402
#define ID_VIEW_SELECTED_ATTRIBUTES 403

View file

@ -60,8 +60,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Ñîçäàòü ñèñòåìíûé äèñê...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "Подклю&чить сетевой диск" , 252
MENUITEM "Отк&лючить сетевой диск" , 253
MENUITEM "Ïîäêëþ&÷èòü ñåòåâîé äèñê" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "Îòê&ëþ÷èòü ñåòåâîé äèñê" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Ñäåëàòü î&áùèì êàê..." , 254
MENUITEM "&Çàêðûòü îáùèé äîñòóï..." , 255

View file

@ -61,8 +61,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Make System Disk...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "Connect &Network Drive" , 252
MENUITEM "&Disconnect Network Drive" , 253
MENUITEM "Connect &Network Drive" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "&Disconnect Network Drive" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "Share as..." , 254
MENUITEM "&Remove Share..." , 255

View file

@ -2000,6 +2000,14 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
}
break;}
case ID_CONNECT_NETWORK_DRIVE:
WNetConnectionDialog(hwnd, RESOURCETYPE_DISK);
break;
case ID_DISCONNECT_NETWORK_DRIVE:
WNetDisconnectDialog(hwnd, RESOURCETYPE_DISK);
break;
case ID_HELP:
WinHelp(hwnd, RS(b1,IDS_WINEFILE), HELP_INDEX, 0);
break;

View file

@ -55,7 +55,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib ole32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib ole32.lib mpr.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
!ELSEIF "$(CFG)" == "winefile - Win32 Unicode Debug"
@ -81,7 +81,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib ole32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib ole32.lib mpr.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
!ELSEIF "$(CFG)" == "winefile - Win32 UNICODE Release"
@ -108,7 +108,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib ole32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib ole32.lib mpr.lib /nologo /subsystem:windows /machine:I386
!ELSEIF "$(CFG)" == "winefile - Win32 Release"
@ -135,7 +135,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib ole32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 user32.lib gdi32.lib advapi32.lib comctl32.lib shell32.lib comdlg32.lib ole32.lib mpr.lib /nologo /subsystem:windows /machine:I386
!ENDIF

View file

@ -61,8 +61,8 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "建立系统盘(&M...", -1 /*@@ */
#endif
MENUITEM SEPARATOR
MENUITEM "连接网络驱动器(&N" , 252
MENUITEM "断开网络驱动器连接(&D" , 253
MENUITEM "连接网络驱动器(&N" , ID_CONNECT_NETWORK_DRIVE
MENUITEM "断开网络驱动器连接(&D" , ID_DISCONNECT_NETWORK_DRIVE
MENUITEM SEPARATOR
MENUITEM "共享为..." , 254
MENUITEM "删除共享(&R..." , 255