@pymethod int|PyCListCtrl|SetColumnWidth|Sets the width of the specified column in the list control.
| 405 | |
| 406 | // @pymethod int|PyCListCtrl|SetColumnWidth|Sets the width of the specified column in the list control. |
| 407 | PyObject *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. |
| 425 | PyObject *PyCListCtrl_GetColumnWidth( PyObject *self, PyObject *args ) |
nothing calls this directly
no test coverage detected