DeviceContext::GetDeviceCaps

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