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

Function ui_propsheet_get_tab_ctrl

Pythonwin/win32prop.cpp:294–306  ·  view source on GitHub ↗

@pymethod |PyCPropertySheet|GetTabCtrl|Returns the tab control used by the sheet.

Source from the content-addressed store, hash-verified

292
293// @pymethod <o PyCTabCtrl>|PyCPropertySheet|GetTabCtrl|Returns the tab control used by the sheet.
294PyObject *ui_propsheet_get_tab_ctrl( PyObject *self, PyObject *args )
295{
296 CHECK_NO_ARGS(args);
297 CPythonPropertySheet *pPS;
298 if (!(pPS=GetPythonPropSheet(self)))
299 return NULL;
300 GUI_BGN_SAVE;
301 CTabCtrl *pTab = pPS->GetTabControl();
302 GUI_END_SAVE;
303 if (pTab==NULL)
304 RETURN_ERR("The property page does not have a tab control");
305 return ui_assoc_object::make( ui_tabctrl_object::type, pTab)->GetGoodRet();
306}
307
308// @pymethod int|PyCPropertySheet|DoModal|Displays the property sheet as a modal dialog.
309PyObject *ui_propsheet_do_modal( PyObject *self, PyObject *args )

Callers

nothing calls this directly

Calls 2

GetPythonPropSheetFunction · 0.85
GetGoodRetMethod · 0.80

Tested by

no test coverage detected