@pymethod int|PyCListCtrl|SetColumn|Changes column state in a list control when in report view.
| 243 | |
| 244 | // @pymethod int|PyCListCtrl|SetColumn|Changes column state in a list control when in report view. |
| 245 | PyObject *PyCListCtrl_SetColumn( PyObject *self, PyObject *args ) |
| 246 | { |
| 247 | CListCtrl *pList; |
| 248 | int iColNo; |
| 249 | PyObject *obLVCol; |
| 250 | |
| 251 | if (!(pList=GetListCtrl(self))) |
| 252 | return NULL; |
| 253 | |
| 254 | if (!PyArg_ParseTuple(args, "iO:InsertColumn", |
| 255 | &iColNo, // @pyparm int|colNo||The to be modified column number |
| 256 | &obLVCol)) // @pyparm <o LV_COLUMN>|item||A tuple describing the modified column. |
| 257 | return NULL; |
| 258 | LV_COLUMN lvCol; |
| 259 | if (!PyWinObject_AsLV_COLUMN(obLVCol, &lvCol)) |
| 260 | return NULL; |
| 261 | GUI_BGN_SAVE; |
| 262 | int ret = pList->SetColumn(iColNo, &lvCol); |
| 263 | GUI_END_SAVE; |
| 264 | PyWinObject_FreeLV_COLUMN(&lvCol); |
| 265 | if (ret==-1) |
| 266 | RETURN_ERR("SetColumn failed"); |
| 267 | return PyInt_FromLong(ret); |
| 268 | } |
| 269 | |
| 270 | // @pymethod int|PyCListCtrl|InsertItem|Inserts an item into the list. |
| 271 | PyObject *PyCListCtrl_InsertItem( PyObject *self, PyObject *args ) |
nothing calls this directly
no test coverage detected