登录
首页 » Windows开发 » Windows平台下枚举显示器所有的显示分辨率

Windows平台下枚举显示器所有的显示分辨率

于 2022-11-04 发布 文件大小:7.76 kB
0 229
下载积分: 2 下载次数: 1

代码说明:

应用背景该Module源码的功能是枚举在Windows平台下显示器的分辨率列表,这样也就可以获得显示器的所有分辨率,同时也可以获得显示器的最大分辨率,其源码是用VS2012 Ultimate工具的Win32 Console Application程序。关键技术用到了Windows的库函数#pragma comment(lib, "D3D9.lib"), 需要的结构体D3DCAPS9,以及相应的库函数有Direct3DCreate9(D3D_SDK_VERSION),GetDeviceCaps(D3DADAPTER_DEFAULT, D3DDEVTYPE_NULLREF, &caps),GetAdapterDisplayMode(caps.AdapterOrdinal, &dismode),GetAdapterModeCount(caps.AdapterOrdinal, dismode.Format)等...

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • GSM_TEST程序
    GSM_TEST软件,可通过对GSM900模块进行在线测试!
    2022-02-16 06:38:42下载
    积分:1
  • 多智能体结合粒子群算法代码
    多智能体系统,用的粒子群算法。这个例子是机组组合,适于用多智能体求解电力系统相关问题的朋友们借鉴。
    2023-01-20 09:05:03下载
    积分:1
  • Floyd-Steinberg Dithering佛洛伊德斯坦伯格抖动算法
    只有三个核心函数。 PlusTrancate,FindNearestColor和Process。 PlusTrancate尝试将一个量化误差添加到现有颜色中,并防止流过色,因为最大数为255。 FindNearestColor是最接近的颜色,您需要将调色板传递到此函数中以查找您要查找的映射。 例如 [{0,0,0},{255,255,255}]表示黑白 [{255,0,0},{0,255,0},{0,0,255}]表示RGB [{0,255,255},{255,0,255},{255,255,0}]表示CMY 图像的每个像素的核心功能过程然后从该像素获得最近的颜色,并从环绕颜色计算量化误差,使图像变得更具代表性。
    2023-05-20 15:10:03下载
    积分:1
  • 供初入门的学习用的4位计数器程序,简单易懂,可编译通过,可仿真...
    供初入门的学习用的4位计数器程序,简单易懂,可编译通过,可仿真-bcount4
    2022-11-01 11:10:03下载
    积分:1
  • DRAP & DROP 的代码
    DRAP & DROP 的代码-DRAP
    2022-01-31 19:46:30下载
    积分:1
  • vb application upload test
    vb application upload test
    2023-05-05 04:55:02下载
    积分:1
  • Make the snake grow longer by directing it to the food. % Extra bonus points a...
    Make the snake grow longer by directing it to the food. % Extra bonus points are given from hearts, eat them as fast as possible % as amount of bonus points decreases with time. % Higher level gives more points for the food but will also make it % tougher to steer a long snake as speed increaces. % Five different mazes as well as play w/o maze are possible.-Make the snake grow longer by directing it to the food. Extra bonus points are given from hearts, eat them as fast as possible as amount of bonus points decreases with time. Higher level gives more points for the food but will also make it tougher to steer a long snake as speed increaces. Five different mazes as well as play w/o maze are possible.
    2022-07-03 09:36:37下载
    积分:1
  • LAPACK的C++实现,提供了全面的BLAS接口。
    LAPACK的C++实现,提供了全面的BLAS接口。-LAPACK the C++ Realize, provides a comprehensive BLAS interface.
    2022-03-25 10:20:45下载
    积分:1
  • Imitation of a Vista Aero
    一个仿Vista Aero风格的窗体界面源码-Imitation of a Vista Aero-style interface source code form
    2023-01-24 22:05:04下载
    积分:1
  • MFC 一个例子,具体看了就会明白
    MFC 一个例子,具体看了就会明白-An instance of MFC, and you can better interpret it when reading through.
    2022-03-10 00:20:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载