【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.8.4 DeviceContext::GetDeviceCaps
Contents
Description
This method retrieves a wide range of device-specific information about the display device.
Syntax
int GetDeviceCaps( int nIndex )const
Parameters
- nIndex
- [input] the type of information to return.
Return
The value of the requested capability if the function is successful.
Examples
EX1
int DeviceContext_GetDeviceCaps_ex1() { Window wnd1 = GetWindow(); DeviceContext dc; dc = wnd1.GetDC(); int iRet = dc.GetDeviceCaps(0); out_int("Device version number is ", iRet); return 0; }
Remark
See Also
Header to Include
origin.h