@pymethod object|PyCTreeCtrl|GetItemData|Retrieves the application-specific value associated with an item.
| 614 | |
| 615 | // @pymethod object|PyCTreeCtrl|GetItemData|Retrieves the application-specific value associated with an item. |
| 616 | PyObject *PyCTreeCtrl_GetItemData( PyObject *self, PyObject *args ) |
| 617 | { |
| 618 | HTREEITEM item; |
| 619 | if (!PyArg_ParseTuple( args, "i:GetItemData", |
| 620 | &item)) // @pyparm HTREEITEM|item||The index of the item whose data is to be retrieved. |
| 621 | |
| 622 | return NULL; |
| 623 | CTreeCtrl *pList = GetTreeCtrl(self); |
| 624 | if (!pList) return NULL; |
| 625 | GUI_BGN_SAVE; |
| 626 | DWORD_PTR rc = pList->GetItemData(item); |
| 627 | GUI_END_SAVE; |
| 628 | return PyWinObject_FromDWORD_PTR(rc); |
| 629 | } |
| 630 | |
| 631 | // @pymethod int|PyCTreeCtrl|SetItemData|Sets the item's application-specific value. |
| 632 | PyObject *PyCTreeCtrl_SetItemData( PyObject *self, PyObject *args ) |
nothing calls this directly
no test coverage detected