@pymethod int|PyCListCtrl|GetColumnWidth|Gets the width of the specified column in the list control.
| 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 ) |
| 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. |
| 440 | PyObject *PyCListCtrl_GetStringWidth( PyObject *self, PyObject *args ) |
nothing calls this directly
no test coverage detected