如何检测Windows8.1的开始菜单? [英] How to detect windows8.1 start menu?

查看:58
本文介绍了如何检测Windows8.1的开始菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在Windows 8.1上按开始菜单时,它会以图块的形式显示带有应用程序的所有新开始菜单.此菜单显示在整个屏幕上.有没有一种方法可以检测此菜单是否在c ++中打开. 8.1 SDK中是否有winAPI可以执行此操作.

When we press start menu on windows 8.1 it show up all new start menu with apps in form of tiles. This menu shows up on entire screen. Is there a way to detect if this menu is open in c++. Is there a winAPI to do so in 8.1 SDK.

谢谢.

推荐答案

调用CoCreateInstance(CLSID_AppVisibility,...)以获取实现 IsLauncherVisible 来查看开始菜单是否可见.

Call CoCreateInstance(CLSID_AppVisibility,...) to get the object that implements IAppVisibility then call IAppVisibility::IsLauncherVisible to see if the start menu is visible.

开始屏幕可见性示例"

这篇关于如何检测Windows8.1的开始菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆