@pymethod tuple|PyCWnd|PreCreateWindow|Calls the underlying MFC PreCreateWindow method. @xref
| 3150 | // @pymethod tuple|PyCWnd|PreCreateWindow|Calls the underlying MFC PreCreateWindow method. |
| 3151 | // @xref <vm PyCWnd.PreCreateWindow> |
| 3152 | static PyObject * |
| 3153 | ui_window_pre_create_window(PyObject *self, PyObject *args) |
| 3154 | { |
| 3155 | WndHack *pWnd = (WndHack *)GetWndPtr(self); |
| 3156 | if (!pWnd) |
| 3157 | return NULL; |
| 3158 | |
| 3159 | CREATESTRUCT cs; |
| 3160 | //@pyparm tuple|createStruct||A tuple representing a CREATESTRUCT structure. |
| 3161 | if (!CreateStructFromPyObject( &cs, args, "PreCreateWindow", TRUE)) |
| 3162 | return NULL; |
| 3163 | |
| 3164 | GUI_BGN_SAVE; |
| 3165 | BOOL ok = pWnd->WndHack::PreCreateWindow(cs); |
| 3166 | GUI_END_SAVE; |
| 3167 | if (!ok)RETURN_ERR("CWnd::PreCreateWindow failed"); |
| 3168 | return PyObjectFromCreateStruct(&cs); |
| 3169 | } |
| 3170 | |
| 3171 | // @pymethod int|PyCWnd|OnQueryNewPalette|Calls the underlying MFC OnQueryNewPalette method. |
| 3172 | // @xref <vm PyCWnd.OnQueryNewPalette> |
nothing calls this directly
no test coverage detected