GetBkColor

  COLORREF GetBkColor(hdc)    
  HDC hdc; /* device-context handle */

The GetBkColor function returns the current background color of the specified device.

Parameters

hdc

Identifies the device context.

Return Value

The return value specifies a COLORREF value for the current background color. It is CLR_INVALID if an error occurred.

See Also

SetBkColor