win32gui.GetDlgCtrlID

int = GetDlgCtrlID(hwnd)

Retrieves the identifier of the specified control.

Parameters

hwnd : int

The handle to the control