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

Function PyCTreeView_get_tree_ctrl

Pythonwin/win32view.cpp:1065–1075  ·  view source on GitHub ↗

@pymethod |PyCTreeView|GetTreeCtrl|Returns the underlying tree control object.

Source from the content-addressed store, hash-verified

1063
1064// @pymethod <o PyCTreeCtrl>|PyCTreeView|GetTreeCtrl|Returns the underlying tree control object.
1065static PyObject *
1066PyCTreeView_get_tree_ctrl(PyObject *self, PyObject *args)
1067{
1068 CTreeView *pView;
1069 if (!(pView=GetTreeViewPtr(self)))
1070 return NULL;
1071 GUI_BGN_SAVE;
1072 CTreeCtrl &lc = pView->GetTreeCtrl();
1073 GUI_END_SAVE;
1074 return ui_assoc_object::make( UITypeFromCObject(&lc), &lc )->GetGoodRet();
1075}
1076
1077// @pymethod |PyCTreeView|OnCommand|Calls the standard Python framework OnCommand handler
1078PyObject *

Callers

nothing calls this directly

Calls 2

GetTreeViewPtrFunction · 0.85
GetGoodRetMethod · 0.80

Tested by

no test coverage detected