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

Function PyCTreeCtrl_GetItemData

Pythonwin/win32ctrlTree.cpp:616–629  ·  view source on GitHub ↗

@pymethod object|PyCTreeCtrl|GetItemData|Retrieves the application-specific value associated with an item.

Source from the content-addressed store, hash-verified

614
615// @pymethod object|PyCTreeCtrl|GetItemData|Retrieves the application-specific value associated with an item.
616PyObject *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.
632PyObject *PyCTreeCtrl_SetItemData( PyObject *self, PyObject *args )

Callers

nothing calls this directly

Calls 3

GetTreeCtrlFunction · 0.85
GetItemDataMethod · 0.45

Tested by

no test coverage detected