Share via


CWinAppEx::EnableLoadWindowPlacement

Specifies whether the application will load the initial size and ___location of the main frame window from the registry.

void EnableLoadWindowPlacement(
   BOOL bEnable = TRUE
);

Parameters

  • [in] bEnable
    Specifies whether the application loads the initial size and ___location of the main frame window from the registry.

Remarks

By default, the size and ___location of the main frame is loaded from the registry together with other application settings. This occurs during CWinAppEx::LoadState. If you do not want to load the initial window placement from the registry, call this method with bEnable set to false.

Requirements

Header: afxwinappex.h

See Also

Reference

CWinAppEx Class

Hierarchy Chart