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

Function PyCTreeCtrl_GetItemImage

Pythonwin/win32ctrlTree.cpp:355–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353// @pymethod (int,int)|PyCTreeCtrl|GetItemImage|Retrieves the index of an items images.
354// @pyparm HTREEITEM|item||The specified item
355PyObject *PyCTreeCtrl_GetItemImage( PyObject *self, PyObject *args )
356{
357 HTREEITEM item;
358 if (!PyArg_ParseTuple( args, "i:GetItemImage", &item))
359 return NULL;
360 CTreeCtrl *pList = GetTreeCtrl(self);
361 if (!pList) return NULL;
362 int res1, res2;
363 GUI_BGN_SAVE;
364 BOOL ok = pList->GetItemImage(item, res1, res2);
365 GUI_END_SAVE;
366 if (!ok)
367 RETURN_ERR("GetItemImage failed");
368 return Py_BuildValue("ii",res1, res2);
369}
370
371// @pymethod (int,int)|PyCTreeCtrl|GetItemState|Retrieves the state and mask of an item.
372// @pyparm HTREEITEM|item||The specified item

Callers

nothing calls this directly

Calls 1

GetTreeCtrlFunction · 0.85

Tested by

no test coverage detected