C中改变显示器的分辨率.docVIP

  • 1
  • 0
  • 约3.22千字
  • 约 6页
  • 2016-09-19 发布于重庆
  • 举报
C中改变显示器的分辨率

C#中改变显示器的分辨率 下面的代码实现修改显示器分辨率和刷新频率的功能: using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Runtime.InteropServices; namespace ScreenResolution { public class Form1 : System.Windows.Forms.Form { public enum DMDO { DEFAULT = 0, D90 = 1, D180 = 2, D270 = 3 } [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] struct DEVMODE { public const int DM_DISPLAYFREQUENCY = 0x400000; public const int DM_PELSWIDTH = 0x80000;

文档评论(0)

1亿VIP精品文档

相关文档