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

Function PyCListCtrl_SetColumnWidth

Pythonwin/win32ctrlList.cpp:407–422  ·  view source on GitHub ↗

@pymethod int|PyCListCtrl|SetColumnWidth|Sets the width of the specified column in the list control.

Source from the content-addressed store, hash-verified

405
406// @pymethod int|PyCListCtrl|SetColumnWidth|Sets the width of the specified column in the list control.
407PyObject *PyCListCtrl_SetColumnWidth( PyObject *self, PyObject *args )
408{
409 int col, width;
410 if (!PyArg_ParseTuple( args, "ii:SetColumnWidth",
411 &col, // @pyparm int|first||Index of the column to be changed.
412 &width)) // @pyparm int|first||New width of the column.
413 return NULL;
414 CListCtrl *pList = GetListCtrl(self);
415 if (!pList) return NULL;
416 GUI_BGN_SAVE;
417 BOOL ok = pList->SetColumnWidth(col, width);
418 GUI_END_SAVE;
419 if (!ok)
420 RETURN_ERR("SetColumnWidth failed");
421 RETURN_NONE;
422}
423
424// @pymethod int|PyCListCtrl|GetColumnWidth|Gets the width of the specified column in the list control.
425PyObject *PyCListCtrl_GetColumnWidth( PyObject *self, PyObject *args )

Callers

nothing calls this directly

Calls 1

GetListCtrlFunction · 0.85

Tested by

no test coverage detected