| 33 | { |
| 34 | } |
| 35 | CListCtrl *GetListCtrl(PyObject *self, bool bNeedValidHwnd = true) |
| 36 | { |
| 37 | extern CListView *GetListViewPtr(PyObject *self); |
| 38 | CListCtrl *rc; |
| 39 | |
| 40 | if (ui_base_class::is_uiobject(self, &PyCListView::type)) { |
| 41 | CListView *pView = GetListViewPtr(self); |
| 42 | if (pView) |
| 43 | rc = &(pView->GetListCtrl()); |
| 44 | else |
| 45 | rc = NULL; |
| 46 | } else |
| 47 | rc = (CListCtrl *)PyCWnd::GetPythonGenericWnd(self, &PyCListCtrl::type); |
| 48 | if (rc && bNeedValidHwnd && !::IsWindow(rc->m_hWnd)) |
| 49 | RETURN_ERR((char *)szErrListRequiresWindow); |
| 50 | return rc; |
| 51 | } |
| 52 | |
| 53 | // @pymethod <o PyCListCtrl>|win32ui|CreateListCtrl|Creates a list control. |
| 54 | PyObject *PyCListCtrl_create(PyObject *self, PyObject *args) |
no test coverage detected