PyCWnd.CenterWindow

CenterWindow(altwin)

Centers a window relative to its parent.

Parameters

altwin=None : PyCWnd

alternate window relative to which it will be centered (other than the parent window).

MFC References

CWnd::CenterWindow