win32gui.GetBkColor

int = GetBkColor(hdc)

Returns the background color for a device context

Parameters

hdc : PyHANDLE

Handle to a device context

Return Value

Returns an RGB color value. On error, returns CLR_INVALID.