| 353 | // @pymethod (int,int)|PyCTreeCtrl|GetItemImage|Retrieves the index of an items images. |
| 354 | // @pyparm HTREEITEM|item||The specified item |
| 355 | PyObject *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 |
nothing calls this directly
no test coverage detected