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

Function PyCListCtrl_GetColumnWidth

Pythonwin/win32ctrlList.cpp:425–437  ·  view source on GitHub ↗

@pymethod int|PyCListCtrl|GetColumnWidth|Gets the width of the specified column in the list control.

Source from the content-addressed store, hash-verified

423
424// @pymethod int|PyCListCtrl|GetColumnWidth|Gets the width of the specified column in the list control.
425PyObject *PyCListCtrl_GetColumnWidth( PyObject *self, PyObject *args )
426{
427 int col;
428 if (!PyArg_ParseTuple( args, "i:GetColumnWidth",
429 &col)) // @pyparm int|first||Index of the column whose width is to be retrieved.
430 return NULL;
431 CListCtrl *pList = GetListCtrl(self);
432 if (!pList) return NULL;
433 GUI_BGN_SAVE;
434 int width = pList->GetColumnWidth(col);
435 GUI_END_SAVE;
436 return Py_BuildValue("i", width);
437}
438
439// @pymethod int|PyCListCtrl|GetStringWidth|Gets the necessary column width to fully display this text in a column.
440PyObject *PyCListCtrl_GetStringWidth( PyObject *self, PyObject *args )

Callers

nothing calls this directly

Calls 1

GetListCtrlFunction · 0.85

Tested by

no test coverage detected