答案 0 :(得分:1)
这称为网络视图。您可以在程序启动和退出时以编程方式启用和禁用它。请注意,更改将在系统范围内进行。
为此,您可以通过SHGetSetSettings
将SHELLFLAGSTATE.fDoubleClickInWebView
成员设置为0
,从.NET进行p调用。
语法为:
SHGetSetSettings (LPSHELLFLAGSTATE lpsfs, DWORD dwMask, BOOL set);
...在您的情况下,dwMask将设置为SSF_DOUBLECLICKINWEBVIEW
并且设置 = TRUE
p调用签名应为:
[DllImport("shell32.dll")]
static extern void SHGetSetSettings (ref SHELLFLAGSTATE lpsfs, uint dwMask, BOOL set);
SHELLFLAGSTATE
定义为:(礼貌p-invoke.net)
[Flags]
enum SHELLFLAGSTATE : long
{
fShowAllObjects = 0x00000001,
fShowExtensions = 0x00000002,
fNoConfirmRecycle = 0x00000004,
fShowSysFiles = 0x00000008,
fShowCompColor = 0x00000010,
fDoubleClickInWebView = 0x00000020,
fDesktopHTML = 0x00000040,
fWin95Classic = 0x00000080,
fDontPrettyPath = 0x00000100,
fShowAttribCol = 0x00000200,
fMapNetDrvBtn = 0x00000400,
fShowInfoTip = 0x00000800,
fHideIcons = 0x00001000,
}