@pymethod |PyCDocument|SetPathName|Set the full path name for the document.
| 327 | |
| 328 | // @pymethod |PyCDocument|SetPathName|Set the full path name for the document. |
| 329 | PyObject * |
| 330 | ui_doc_set_path_name(PyObject *self, PyObject *args) |
| 331 | { |
| 332 | TCHAR *path; |
| 333 | PyObject *obpath; |
| 334 | if (!PyArg_ParseTuple(args, "O:SetPathName", &obpath)) // @pyparm string|path||The full path of the file. |
| 335 | return NULL; |
| 336 | |
| 337 | CDocument *pDoc; |
| 338 | if (!(pDoc=PyCDocument::GetDoc(self))) |
| 339 | return NULL; |
| 340 | if (!PyWinObject_AsTCHAR(obpath, &path, FALSE)) |
| 341 | return NULL; |
| 342 | GUI_BGN_SAVE; |
| 343 | pDoc->SetPathName(path); // @pyseemfc CDocument|SetPathName |
| 344 | GUI_END_SAVE; |
| 345 | PyWinObject_FreeTCHAR(path); |
| 346 | RETURN_NONE; |
| 347 | } |
| 348 | |
| 349 | // @pymethod |PyCDocument|SetTitle|Set the title of the document (ie, the name |
| 350 | // to appear in the window caption for the document. |
no test coverage detected