PyCWnd.GetDlgItem

PyCWnd = GetDlgItem(idControl)

Returns a window object for the child window or control with the specified ID. The type of the return object will be as specific as possible, but will always be derived from an PyCWnd object.

Parameters

idControl : int

The Id of the control to be retrieved.

MFC References

CWnd::GetDlgItem

Return Value

The result is a PyCWnd (or derived) object, or a win32ui.error exception is raised.