GetBkMode

  int GetBkMode(hdc)    
  HDC hdc; /* device-context handle */

The GetBkMode function returns the background mix mode of the specified device context. The background mix mode is used with text, hatched brushes, and pen styles that are not solid lines.

Parameters

hdc

Identifies the device context.

Return Value

The return value specifies the current background mix mode. It is 0 if an error occurred.

See Also

SetBkMode