CDC::GetDeviceCaps
Visual Studio 2012
Retrieves a wide range of device-specific information about the display device.
int GetDeviceCaps( int nIndex ) const;
See the example for CPrintDialog::GetDefaults.