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

Function GetListCtrl

Pythonwin/win32ctrlList.cpp:35–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33{
34}
35CListCtrl *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.
54PyObject *PyCListCtrl_create(PyObject *self, PyObject *args)

Callers 15

PyCListCtrl_CreateWindowFunction · 0.85
PyCListCtrl_GetImageListFunction · 0.85
PyCListCtrl_InsertColumnFunction · 0.85
PyCListCtrl_SetColumnFunction · 0.85
PyCListCtrl_InsertItemFunction · 0.85
PyCListCtrl_SetItemFunction · 0.85
PyCListCtrl_SetImageListFunction · 0.85
PyCListCtrl_GetColumnFunction · 0.85
PyCListCtrl_DeleteColumnFunction · 0.85

Calls 1

GetListViewPtrFunction · 0.85

Tested by

no test coverage detected