CWindow::CenterWindow

This method centers the window against a given window.

Syntax

BOOL CenterWindow( HWND hWndCenter = NULL );

At a Glance

Header file: Atlwin.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CWindow Overview, CWindow Methods, CWindow::MoveWindow, CWindow::SetWindowPos