MFC-以编程方式禁用超级按钮栏 [英] MFC- Programmatically Disable Charms Bar

查看:82
本文介绍了MFC-以编程方式禁用超级按钮栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以编程方式禁用Windows 8超级按钮栏. 在MSDN上,我可以找到执行此操作的示例代码. 但是,当在我的计算机上安装Windows 8 SDK并使用该代码段时,出现链接器错误. 可以在 System.EdgeGesture.DisableTouchWhenFullscreen

I need to programmatically disable Windows 8 charms bar. On MSDN i can find sample code to do that. However while using that code snippet with Windows 8 SDK installed on my machine i am getting Linker error. The code snippet can be found at System.EdgeGesture.DisableTouchWhenFullscreen

我能够检索PropertyStore指针,但是当我尝试设置值"PKEY_EdgeGesture_DisableTouchWhenFullscreen"时,该属性出现链接器错误.

I am able to retrieve the PropertyStore pointer but when i try to set the value "PKEY_EdgeGesture_DisableTouchWhenFullscreen" i am get linker error for this property.

推荐答案

该符号将导出以下lib文件.

The symbol is exported the following lib files.

C:\Program Files (x86)\Windows Kits\8.0\Lib>findstr /m /S /c:"PKEY_EdgeGesture
isableTouchWhenFullscreen" *.*

win8\um\arm\Uuid.Lib
win8\um\x64\ehstorguids.lib
win8\um\x64\Uuid.Lib
win8\um\x86\ehstorguids.lib
win8\um\x86\Uuid.Lib

您修改了libpath吗?

Did you modify your libpath?

这篇关于MFC-以编程方式禁用超级按钮栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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