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

Function ui_window_pre_create_window

Pythonwin/win32win.cpp:3152–3169  ·  view source on GitHub ↗

@pymethod tuple|PyCWnd|PreCreateWindow|Calls the underlying MFC PreCreateWindow method. @xref

Source from the content-addressed store, hash-verified

3150// @pymethod tuple|PyCWnd|PreCreateWindow|Calls the underlying MFC PreCreateWindow method.
3151// @xref <vm PyCWnd.PreCreateWindow>
3152static PyObject *
3153ui_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>

Callers

nothing calls this directly

Calls 3

GetWndPtrFunction · 0.85
CreateStructFromPyObjectFunction · 0.85
PyObjectFromCreateStructFunction · 0.85

Tested by

no test coverage detected