我是靠谱客的博主 害羞刺猬,最近开发中收集的这篇文章主要介绍Vs2008在高DPI下显示模糊的解决办法,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

转自:https://gist.github.com/pffang/bab575849a32b8a7b2cd


1、在注册表编辑器中找到 HLKMSOFTWAREMicrosoftWindowsCurrentVersionSideBySide,将里面的 PreferExternalManifest 改成 1(如果没有就新增一个 DWORD 值,然后写 1)
2、将下面的代码保存为devenv.exe.manifest,将其拷贝放入devenv.exe所在文件夹,如C:Program Files (x86)Microsoft Visual Studio 9.0Common7IDE。
这样devenv就不会在高分辨率显示器中自动放大造成字体模糊了。


<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="devenv" type="win32"/>
  <description>Microsoft Visual Studio</description>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"/>
    </dependentAssembly>
  </dependency>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"/>
    </dependentAssembly>
  </dependency>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
      </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> 
        <!--This Id value indicates the application supports Windows Vista functionality -->
          <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> 
        <!--This Id value indicates the application supports Windows 7 functionality-->
          <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
        <!--This Id value indicates the application supports Windows 8 functionality-->
          <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
        <!--This Id value indicates the application supports Windows 8.1 functionality-->
          <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
      </application> 
  </compatibility>
</assembly>


最后

以上就是害羞刺猬为你收集整理的Vs2008在高DPI下显示模糊的解决办法的全部内容,希望文章能够帮你解决Vs2008在高DPI下显示模糊的解决办法所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部