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

Function PreCreateWindow

Pythonwin/win32uiExt.h:133–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 return T::OnCommand(wparam, lparam);
132 }
133 virtual BOOL PreCreateWindow(CREATESTRUCT &cs) {
134 // @pyvirtual BOOL|PyCWnd|PreCreateWindow|Called by the framework before the creation of the Windows window attached to this View object.
135 // @pyparm tuple|CREATESTRUCT||A tuple describing a CREATESTRUCT structure.
136 // @xref <om PyCWnd.PreCreateWindow>
137 CVirtualHelper helper("PreCreateWindow", this);
138 if (helper.HaveHandler()) {
139 if (!helper.call(&cs) || !helper.retval(cs))
140 return FALSE;
141 return TRUE;
142 } else {
143 return T::PreCreateWindow(cs);
144 }
145 }
146 afx_msg void OnClose() {
147 // @pyvirtual void|PyCWnd|OnClose|Called for the WM_CLOSE message.
148 // @comm The default calls DestroyWindow(). If you supply a handler, the default is not called.

Callers 3

PreCreateWindowMethod · 0.85
PreCreateWindowBaseMethod · 0.85
BasePreCreateWindowMethod · 0.85

Calls 2

callMethod · 0.80
retvalMethod · 0.80

Tested by

no test coverage detected