@pymethod tuple|PyCView|PreCreateWindow|Calls the underlying MFC PreCreateWindow method. @xref
| 225 | // @pymethod tuple|PyCView|PreCreateWindow|Calls the underlying MFC PreCreateWindow method. |
| 226 | // @xref <vm PyCWnd.PreCreateWindow> |
| 227 | PyObject * |
| 228 | PyCView_pre_create_window(PyObject *self, PyObject *args) |
| 229 | { |
| 230 | CProtectedView *view = (CProtectedView*)PyCView::GetViewPtr (self); |
| 231 | if (view == NULL) |
| 232 | return NULL; |
| 233 | CREATESTRUCT cs; |
| 234 | //@pyparm tuple|createStruct||A tuple representing a CREATESTRUCT structure. |
| 235 | if (!CreateStructFromPyObject( &cs, args, "PreCreateWindow", TRUE)) |
| 236 | return NULL; |
| 237 | |
| 238 | GUI_BGN_SAVE; |
| 239 | BOOL ok = view->BasePreCreateWindow(cs); |
| 240 | GUI_END_SAVE; |
| 241 | if (!ok) |
| 242 | RETURN_ERR("CView::PreCreateWindow failed"); |
| 243 | return PyObjectFromCreateStruct(&cs); |
| 244 | } |
| 245 | |
| 246 | // @pymethod |PyCView|OnFilePrint|Calls the underlying MFC OnFilePrint method. |
| 247 | PyObject * |
nothing calls this directly
no test coverage detected