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

Method InitialUpdateFrame

Pythonwin/win32template.cpp:300–323  ·  view source on GitHub ↗

@pymethod |PyCDocTemplate|InitialUpdateFrame|Calls the default OnInitialFrame handler.

Source from the content-addressed store, hash-verified

298
299// @pymethod |PyCDocTemplate|InitialUpdateFrame|Calls the default OnInitialFrame handler.
300PyObject *
301PyCDocTemplate::InitialUpdateFrame(PyObject *self, PyObject *args)
302{
303 PyObject *obDoc;
304 PyObject *obFrame;
305 int bMakeVisible = TRUE;
306
307 if (!PyArg_ParseTuple(args,"OO|i:InitialUpdateFrame",
308 &obFrame,// @pyparm <o PyCFrameWnd>|frame|None|The frame window.
309 &obDoc, // @pyparm <o PyCDocument>|doc|None|A document for the frame.
310 &bMakeVisible))// @pyparm int|bMakeVisible|1|Indicates of the frame should be shown.
311 return NULL;
312 CPythonDocTemplate *pTempl = GetTemplate(self);
313 if (pTempl==NULL)
314 return NULL;
315 CDocument *pDoc = PyCDocument::GetDoc(obDoc);
316 CFrameWnd *pFrame = GetFramePtr(obFrame);
317 if (pFrame==NULL || pDoc==NULL) return NULL;
318 // @xref <vm PyCDocTemplate.InitialUpdateFrame>
319 GUI_BGN_SAVE;
320 pTempl->CMultiDocTemplate::InitialUpdateFrame(pFrame, pDoc, bMakeVisible);
321 GUI_END_SAVE;
322 RETURN_NONE;
323}
324
325// @pymethod |PyCDocTemplate|OpenDocumentFile|Opens a document file, creating a view and frame.
326PyObject *

Callers

nothing calls this directly

Calls 3

GetFramePtrFunction · 0.85
GetGoodRetMethod · 0.80
call_argsMethod · 0.80

Tested by

no test coverage detected