@pymethod |PyCDocTemplate|InitialUpdateFrame|Calls the default OnInitialFrame handler.
| 298 | |
| 299 | // @pymethod |PyCDocTemplate|InitialUpdateFrame|Calls the default OnInitialFrame handler. |
| 300 | PyObject * |
| 301 | PyCDocTemplate::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. |
| 326 | PyObject * |
nothing calls this directly
no test coverage detected