Skip to content

ResetWindowPos - cApplication

Called during DoLoadEnvironment for the main application window when the main window's placement would position the window outside the current Windows desktop

Type: Procedure

Parameters

Parameter Type Description
ByRef WindowPos tWinRect The current window position

Syntax

Procedure ResetWindowPos ByRef tWinRect WindowPos

Call Example

Send ResetWindowPos WindowPos

Description

Called during DoLoadEnvironment for the main application window when the main window's placement would position the window outside the current Windows desktop. This can occur when the monitor size or configuration changed since the application was last closed.

By default, this method modifies the main window's placement rectangle so that the window is positioned at 0,0 and is resized to fit within the main monitor.

You can augment or override this method to modify how the main window's placement is reset.