win32gui.GetCurrentObject

PyHANDLE = GetCurrentObject(hdc, ObjectType )

Retrieves currently selected object from a DC

Parameters

hdc : PyHANDLE

Handle to a device context

ObjectType : int

Type of object to retrieve, one of win32con.OBJ_*;