摘要:
DEVMODE数据结构中包含了有关设备初始化和打印机环境的信息。在C#中定义DEVMODE结构: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public struct DEVMODE { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]... 阅读全文
posted @ 2012-10-11 10:59
冰呆瓜
阅读(1222)
评论(0)
推荐(0)
摘要:
1. 获取屏幕分辨率 using System.Windows.Forms; A. 获取屏幕分辨率 int SH = Screen.PrimaryScreen.Bounds.Height; int SW = Screen.PrimaryScreen.Bounds.Width; B. 通过调用DLL改变屏幕分辨率 [DllImp... 阅读全文
posted @ 2012-10-11 09:36
冰呆瓜
阅读(2271)
评论(0)
推荐(0)