GetDeviceCaps来取得显示的关资讯
CDC::GetDeviceCaps
int GetDeviceCaps( int nIndex ) const;
返回值
The value of the requested capability if the function is successful.
如果成功,则返回所需要的能力值。
参数说明
nIndex
Specifies the type of information to return. It can be any one of the following values:
指定返回信息类型,可为下列值之一:
∙DRIVERVERSION Version number; for example, 0x100 for 1.0.
∙
∙DRIVERVERSION 版本号,例如:0x100表示1.0版
∙TECHNOLOGY Device technology. It can be any one of the following:
∙
菜单翻译
∙TECHNOLOGY 设备技术,可为下列值之一:
Value | Meaning |
DT_PLOTTER | Vector plotter矢量绘图机 |
DT_RASDISPLAY | abcdefg字母表Raster display光栅显示 |
DT_RASPRINTER | Raster printer光栅打印机 |
DT_RASCAMERA gotta get that>夹子 | Raster camera光栅照相机 |
DT_CHARSTREAM | Character stream字符流 |
DT_METAFILE | Metafile元文件 |
DT_DISPFILE | nannanDisplay file显示文件 |
| |
∙HORZSIZE Width of the physical display (in millimeters).
airtight∙
∙物理显示宽度(以毫米为单位)
∙VERTSIZE Height of the physical display (in millimeters).
∙
∙物理显示高度(以毫米为单位)
∙HORZRES Width of the display (in pixels).
∙
∙显示宽度(用像素表示)。
∙mount your friendsVERTRES Height of the display (in raster lines).
∙
∙显示高度(用光栅线表示)。 prince是什么意思
∙LOGPIXELSX Number of pixels per logical inch along the display width.
∙
∙沿显示宽度方向,每一逻辑单位的像素数
∙LOGPIXELSY Number of pixels per logical inch along the display height.
∙
考研英语怎么复习
∙沿显示高度方向,每一逻辑单位的像素数
∙BITSPIXEL Number of adjacent color bits for each pixel.
∙
∙每一像素的颜色字节数
∙PLANES Number of color planes.
∙
∙颜色位面数。
∙NUMBRUSHES Number of device-specific brushes.
∙
∙指定设备的画刷数目
∙NUMPENS Number of device-specific pens.
∙
∙指定设备的画笔数目。
万一
∙NUMFONTS Number of device-specific fonts.
∙
∙指定设备的画笔数目。
∙NUMCOLORS Number of entries in the device’s color table.
∙
∙指定设备的画笔数目。
∙ASPECTX Relative width of a device pixel as ud for line drawing.
∙
∙用于描线的设备像素的相对宽度。
∙ASPECTY Relative height of a device pixel as ud for line drawing.
∙
∙用于描线的设备像素的相对高度。
∙ASPECTXY Diagonal width of the device pixel as ud for line drawing.
∙
∙用于描线的设备像素的对角线宽度
∙PDEVICESIZE Size of the PDEVICE internal data structure.
∙
∙PDEVICE内部数据结构的尺寸
∙CLIPCAPS Clipping capabilities of the device. It can be one of the following:
∙
∙设备的剪切能力。可以为以下值之一:
Value | Meaning |
CP_NONE | Output is not clipped.输出被剪切 |
CP_RECTANGLE | Output is clipped to rectangles.输出被剪切到矩形 |
CP_REGION | Output is clipped to regions.输出被剪切到区域 |
| |
∙SIZEPALETTE Number of entries in the system palette. This index is valid only if the device driver ts the RC_PALETTE bit in the RASTERCAPS index.
∙
∙SIZEPALETTE 系统调色板的入口数。只有设置驱动程序在RASTERCAPS索引中设置了RC_PALETTE,该参数才有效
∙NUMRESERVED Number of rerved entries in the system palette. This index is valid only if the device driver ts the RC_PALETTE bit in the RASTERCAPS index.
∙
∙NUMRESERVER 系统调色板的保留的入口数。只有设置驱动程序在RASTERCAPS索引中设置了RC_PALETTE,该参数才有效。