CWindow::CenterWindow

This method centers the window against a specified window.

At a Glance

Header file: Atlwin.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL CenterWindow( HWND hWndCenter = NULL );

See Also

CWindow::MoveWindow, CWindow::SetWindowPos