C#调用GetDeviceCaps参数nIndex是多少?
C#调用GetDeviceCaps参数nIndex是多少?
hdc
[in] Handle to the DC.
nIndex
[in] Specifies the item to return. This parameter can be one of the following values. Index Meaning
DRIVERVERSION The device driver version.
TECHNOLOGY Device technology. It can be any one of the following values.
DT_PLOTTER Vector plotter
DT_RASDISPLAY Raster display
DT_RASPRINTER Raster printer
DT_RASCAMERA Raster camera
DT_CHARSTREAM Character stream
DT_METAFILE Metafile
DT_DISPFILE Display file
If the hdc parameter is a handle to the DC of an enhanced metafile, the device technology is that of the referenced device as specified to the CreateEnhMetaFile function. To determine whether it is an enhanced metafile DC, use the GetObjectType function.
HORZSIZE Width, in millimeters, of the physical screen.
VERTSIZE Height, in millimeters, of the physical screen.
HORZRES Width, in pixels, of the screen; or for printers, the width, in pixels, of the printable area of the page.
VERTRES Height, in raster lines, of the screen; or for printers, the height, in pixels, of the printable area of the page.
....
在使用C#调用时 ,应传入整型,但不知道各个值对应的整型应是多少?是按帮助中顺序来吗?
谢谢