This method centers the window against a specified window.
At a Glance
Syntax
BOOL CenterWindow( HWND hWndCenter = NULL );
See Also
CWindow::MoveWindow, CWindow::SetWindowPos