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

Function PyCListCtrl_DeleteColumn

Pythonwin/win32ctrlList.cpp:390–404  ·  view source on GitHub ↗

@pymethod int|PyCListCtrl|DeleteColumn|Deletes the specified column from the list control.

Source from the content-addressed store, hash-verified

388
389// @pymethod int|PyCListCtrl|DeleteColumn|Deletes the specified column from the list control.
390PyObject *PyCListCtrl_DeleteColumn( PyObject *self, PyObject *args )
391{
392 int col;
393 if (!PyArg_ParseTuple( args, "i:DeleteColumn",
394 &col)) // @pyparm int|first||Index of the column to be removed.
395 return NULL;
396 CListCtrl *pList = GetListCtrl(self);
397 if (!pList) return NULL;
398 GUI_BGN_SAVE;
399 BOOL ok = pList->DeleteColumn(col);
400 GUI_END_SAVE;
401 if (!ok)
402 RETURN_ERR("DeleteColumn failed");
403 RETURN_NONE;
404}
405
406// @pymethod int|PyCListCtrl|SetColumnWidth|Sets the width of the specified column in the list control.
407PyObject *PyCListCtrl_SetColumnWidth( PyObject *self, PyObject *args )

Callers

nothing calls this directly

Calls 1

GetListCtrlFunction · 0.85

Tested by

no test coverage detected