INFO: Determining Available RGB Values of an Output Device (27225)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.1
- Microsoft Win32 Application Programming Interface (API), when used with:
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0
This article was previously published under Q27225 SUMMARY
The best way to determine the colors supported by a device is to
enumerate the solid pens from a Device Context (DC) associated with
that device. The EnumObjects function enumerates the pens supported by a specified device and calls a callback function for each pen. To do
so, EnumObjects requires three parameters: a device context associated
with the desired device as the hDC parameter, OBJ_PEN as the value of
the nOjbectType parameter, and the procedure-instance address of a
callback function as the lpObjectFunc parameter.
Modification Type: | Minor | Last Reviewed: | 3/21/2005 |
---|
Keywords: | kbinfo KB27225 |
---|
|