MCPcopy Create free account
hub / github.com/mhammond/pywin32 / PyCTreeCtrl_GetItemText

Function PyCTreeCtrl_GetItemText

Pythonwin/win32ctrlTree.cpp:577–589  ·  view source on GitHub ↗

@pymethod int|PyCTreeCtrl|GetItemText|Retrieves the text of a list view item or subitem.

Source from the content-addressed store, hash-verified

575
576// @pymethod int|PyCTreeCtrl|GetItemText|Retrieves the text of a list view item or subitem.
577PyObject *PyCTreeCtrl_GetItemText( PyObject *self, PyObject *args )
578{
579 HTREEITEM item;
580 if (!PyArg_ParseTuple( args, "i:GetItemText",
581 &item)) // @pyparm HTREEITEM|item||The item whose text is to be retrieved.
582 return NULL;
583 CTreeCtrl *pList = GetTreeCtrl(self);
584 if (!pList) return NULL;
585 GUI_BGN_SAVE;
586 CString csText = pList->GetItemText(item);
587 GUI_END_SAVE;
588 return PyWinObject_FromTCHAR(csText);
589}
590
591// @pymethod int|PyCTreeCtrl|SetItemText|Changes the text of a list view item or subitem.
592PyObject *PyCTreeCtrl_SetItemText( PyObject *self, PyObject *args )

Callers

nothing calls this directly

Calls 2

GetTreeCtrlFunction · 0.85
PyWinObject_FromTCHARFunction · 0.70

Tested by

no test coverage detected