加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows 8分层Windows通过Metro应用程序

发布时间:2020-12-13 22:41:29 所属栏目:Windows 来源:网络整理
导读:我有一个使用微软的分层窗口 http://msdn.microsoft.com/en-us/library/ms997507.aspx在Windows 7上运行的应用程序.这个应用程序设置为具有30%的不透明度,它总是在顶部,并且它对事件是透明的(即:它将所有事件转发到它下面的窗口).您可以将其视为您正在通过
我有一个使用微软的分层窗口 http://msdn.microsoft.com/en-us/library/ms997507.aspx在Windows 7上运行的应用程序.这个应用程序设置为具有30%的不透明度,它总是在顶部,并且它对事件是透明的(即:它将所有事件转发到它下面的窗口).您可以将其视为您正在通过桌面查看的“屏幕”.它目前被用作我们用户无所不在的反馈层.

我们尝试在Windows 8上运行相同的应用程序,并注意它在桌面模式下按预期工作,但没有任何内容覆盖开始菜单和其他metro应用程序.

有没有人知道是否有一个等效的总体顶部窗口模式适用于城域应用程序和Windows 8中的开始菜单?

对的,这是可能的.请看一下这个页面:

http://blogs.microsoft.co.il/blogs/pavely/archive/2012/05/16/windows-8-topmost-vs-topmost.aspx

特别是评论部分的第二篇文章:

The topmost window is also affected by the accessibility settings. If you want a window on top of Metro,you need it to declare accessibility. Here are the key points:

  1. The application must demand uiAccess (app.manifest)

  2. The application must assert “topmost” window positioning (either in Win32/SetWindowPos or WinForms/WPF’s Topmost property,programmatically or otherwise)

  3. Without making changes to the group policy setting,it must be installed to some trusted location [C:Windows,C:Program Files,C:Program Files (x86)].

    • If you want to be able to run it out of an arbitrary location,you must disable the security setting: “User Account Control: Only elevate UIAccess applications that are installed in secure locations”.

    • This is the same as setting HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesSystemValidateAdminCodeSignatures to 0

  4. Said application cannot be run in the debugger

  5. If it’s a .NET application:

    • The manifest must be embedded in a post-build step

    • The application must have “delayed signing” (meaning it cannot be ran from the built-in debugger,although you can build and attach – this is what Microsoft does)

  6. The application must be signed with a trusted certificate.

  7. Said trusted certificate must be installed to the Trusted Root Certificate Authority (this is important! It must not just simply installed)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读