📄 resource.rc
字号:
// resource.rc - resource file (I can't believe I just wrote that)
#include "priv.h"
#include "resource.h"
#include "resource.rcv"
#include <commctrl.h> // for WC_COMBOBOXEX
REGINST REGINST "selfreg_msieftp.inf"
/*****************************************************************************
*
* Icons
*
*****************************************************************************/
// BUGBUG: Use icons from other dlls (\shell32\NUKE.ICO;REPLACE.ICO, \wininet\KEY.ICO)
//IDI_FTPSERVER ICON SERVER.ICO // Icon for an FTP Server
IDI_FTPFOLDER ICON FOLDER.ICO // Icon for a closed folder on a FTP Server
IDI_FTPOPENFOLDER ICON OFOLDER.ICO // Icon for an open folder on a FTP Server
IDI_DELETEITEM ICON NUKE.ICO // Delete File, Folder, or multiple items
IDI_REPLACE ICON REPLACE.ICO // File getting mashed
IDI_KEY ICON KEY.ICO // Key icon for Login As dialog
//IDI_NETFOLDER ICON NETFOLDR.ICO // Folder for Proxy Blocking dialog
//IDI_WRITE_ALLOWED ICON WRITE.ICO // This folder has write access
//IDI_WRITE_NOTALLOWED ICON NOWRITE.ICO // This folder does not have write access
/*****************************************************************************
*
* IDM_ITEMCONTEXT - Context menu for items
*
*****************************************************************************/
IDM_ITEMCONTEXT MENUEX PRELOAD
BEGIN
// Verbs for folders. (IDM_M_FOLDERVERBS)
POPUP ""
BEGIN
MENUITEM "&Open", IDC_ITEM_OPEN
MENUITEM "&Explore", IDC_ITEM_EXPLORE
END
// Verbs for folders. (IDM_M_FILEVERBS)
POPUP ""
BEGIN
MENUITEM "&Open", IDC_ITEM_OPEN
END
// Verbs for all occasions. (IDM_M_VERBS)
POPUP ""
BEGIN
MENUITEM "Copy To &Folder...", IDC_ITEM_DOWNLOAD
END
// (IDM_M_SHAREDVERBS)
// Verbs only on the pop-up context menu for the object directly.
// (Not on the File menu and not on shortcuts.)
// These are called "non-required" verbs...
// _UNDOCUMENTED_: The magic SFVIDM_* values are not documented.
POPUP ""
BEGIN
// We cannot cut because the way the shell does Cut is
// not exported to the outside world. Furthermore, the
// the way the shell does Cut works only for HDROPs.
//
// BUGBUG -- Note that we do not support Paste Shortcut.
// Maybe we should.
#ifdef FEATURE_CUT_MOVE
MENUITEM "Cu&t", IDM_SHARED_EDIT_CUT
#endif // FEATURE_CUT_MOVE
MENUITEM "&Copy", IDM_SHARED_EDIT_COPY
MENUITEM "&Paste", IDM_SHARED_EDIT_PASTE
#ifdef _SOMEDAY_PASTESHORTCUT
MENUITEM "Paste &Shortcut", IDM_SHARED_EDIT_PASTE_SHORTCUT
#endif
MENUITEM "", -1, MFT_SEPARATOR
// TODO: Someday we can actually, upload this link, but not now.
// MENUITEM "Create &Shortcut", IDM_SHARED_FILE_LINK
MENUITEM "&Delete", IDM_SHARED_FILE_DELETE
MENUITEM "Rena&me", IDM_SHARED_FILE_RENAME
MENUITEM "", -1, MFT_SEPARATOR
MENUITEM "P&roperties", IDM_SHARED_FILE_PROP
END
// Verbs for the background menu. (IDM_M_BACKGROUNDVERBS)
POPUP ""
BEGIN
MENUITEM "Login &As...", IDC_LOGIN_AS
POPUP "&New"
BEGIN
MENUITEM "&Folder", IDC_ITEM_NEWFOLDER
END
MENUITEM "", -1, MFT_SEPARATOR
MENUITEM "P&roperties", IDC_ITEM_BKGNDPROP
END
END
IDM_M_BACKGROUND_POPUPMERGE MENUEX PRELOAD
BEGIN
POPUP "", SFVIDM_MENU_ARRANGE
BEGIN
MENUITEM "by &Name", IDM_SORTBYNAME
MENUITEM "by &Type", IDM_SORTBYTYPE
MENUITEM "by Si&ze", IDM_SORTBYSIZE
MENUITEM "by &Date", IDM_SORTBYDATE
END
END
/*****************************************************************************
*
* IDM_FTPMERGE - Menu that is merged into the view menu bar.
*
* _UNDOCUMENTED_: SFVIDM_CLIENT_FIRST is not documented.
*
*****************************************************************************/
IDM_FTPMERGE MENUEX DISCARDABLE
BEGIN
POPUP "", FCIDM_MENU_FILE
BEGIN
MENUITEM "&Login As...", IDC_LOGIN_AS
POPUP "&New"
BEGIN
MENUITEM "&Folder", IDC_ITEM_NEWFOLDER
END
END
POPUP "", SFVIDM_MENU_ARRANGE
BEGIN
MENUITEM "by &Name", IDM_SORTBYNAME
MENUITEM "by &Type", IDM_SORTBYTYPE
MENUITEM "by Si&ze", IDM_SORTBYSIZE
MENUITEM "by &Date", IDM_SORTBYDATE
END
POPUP "", FCIDM_MENU_HELP
BEGIN
MENUITEM "FTP Server &Welcome Message...", IDC_ITEM_ABOUTSITE
MENUITEM "", -1, MFT_SEPARATOR
MENUITEM "&FTP Help", IDC_ITEM_FTPHELP
#ifdef ADD_ABOUTBOX
MENUITEM "About FTP Folder", IDC_ITEM_ABOUTFTP
#endif // ADD_ABOUTBOX
END
END
/*****************************************************************************
*
* IDM_DROPCONTEXT - Context menu used during drag/drop.
*
*****************************************************************************/
IDM_DROPCONTEXT MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "&Copy Here", DROPEFFECT_COPY
MENUITEM "&Move Here", DROPEFFECT_MOVE
MENUITEM SEPARATOR
MENUITEM "Cancel", 0
END
END
/*****************************************************************************
*
* IDM_FOLDERCONTEXT - Context menu used for folder background menu.
*
*****************************************************************************/
IDM_FOLDERCONTEXT MENU DISCARDABLE
BEGIN
POPUP ""
BEGIN
MENUITEM "Cancel", 0
END
END
/*****************************************************************************
*
* IDD_REPLACE - Confirmation dialog for file overwrite warning
* resulting from a drag/drop (or Paste).
*
* We need to say "(no details available)" in case somebody
* dropped a data object on us that doesn't support the Stat()
* function, so we don't know anything about it...
*
*****************************************************************************/
IDD_REPLACE DIALOGEX DISCARDABLE 0, 0, 280, 141
STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | DS_SETFOREGROUND | DS_CENTER | DS_3DLOOK |
WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Confirm File Replace"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "&Yes", IDC_REPLACE_YES,46,120,53,14
PUSHBUTTON "Yes to &All", IDC_REPLACE_YESTOALL,104,120,53,14
PUSHBUTTON "&No", IDC_REPLACE_NO,161,120,53,14
PUSHBUTTON "Cancel", IDC_REPLACE_CANCEL,219,120,53,14
ICON IDI_REPLACE,-1,10,10,18,20
LTEXT "This folder already contains a file called '%s'.",
IDC_FILENAME,41,10,222,22,SS_NOPREFIX
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -