@pymethod int|PyCTreeCtrl|GetItemText|Retrieves the text of a list view item or subitem.
| 575 | |
| 576 | // @pymethod int|PyCTreeCtrl|GetItemText|Retrieves the text of a list view item or subitem. |
| 577 | PyObject *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. |
| 592 | PyObject *PyCTreeCtrl_SetItemText( PyObject *self, PyObject *args ) |
nothing calls this directly
no test coverage detected