【问题标题】:win10 high contrast theme file open dialog context menu is emptywin10高对比度主题文件打开对话框上下文菜单为空
【发布时间】:2016-10-03 00:02:57
【问题描述】:

从 Windows 10 开始,生成的 (Vista+) 文件对话框

hr = CoCreateInstance(CLSID_FileOpenDialog, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pfd));

在高对比度主题中不显示对话框上下文菜单。它在 Win81 和 Win7 中按预期工作,但在 Win10 中没有(Win10 都没有:自最初以来,直到最近的 1607)。

Foobar2000,一个应用程序,最近刚刚解决了这个问题(至少从 v1.3.12 开始)。这里有两张图片显示了两个版本中的问题,坏的是 v1.2.3,但我确信最近 1.3.beta 它是坏的。

下面这些是关于我能在属性中发现的唯一真正区别的 winpy 信息。 Win10 系统文件资源管理器具有与当前 FB2k 中相同的“0000A916 (Atom)”属性(但在以前的 FB2ks 中不存在)。

如何获得类似 Win10 的文件打开对话框?请注意,新版本中没有类似于 Vista 的图形(例如,请参阅后退和前进箭头按钮)。

第三个链接没有达到 0 rep pts。

【问题讨论】:

  • 我认为问题与主题有关。我比较了两个 fb2ks 之间的清单。它就在那里。需要supportedOS 元素。我唯一关心的是Win10的。我已经包含了我使用的 .manifest。

标签: fileopendialog


【解决方案1】:

我认为问题与主题有关。我比较了两个 fb2ks 之间的清单。它就在那里。需要supportedOS 元素。我唯一关心的是Win10的。我已经包含了我使用的 .manifest。

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
    </windowsSettings>
  </application>

  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
        <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"></supportedOS>
    </application>
  </compatibility>
</assembly>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-09-15
    • 2010-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-28
    相关资源
    最近更新 更多