CWindow::CenterWindow

BOOL CenterWindow( HWND hWndCenter = NULL );

Return Value

TRUE if the window is successfully centered; otherwise, FALSE.

Parameters

hWndCenter

[in] The handle to the window against which to center. If this parameter is NULL (the default value), the method will set hWndCenter to the window’s parent window if it is a child window. Otherwise, it will set hWndCenter to the window’s owner window.

Remarks

Centers the window against a given window.

CWindow OverviewClass Members

See Also   CWindow::MoveWindow, CWindow::SetWindowPos