SaveWdwState method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJCustomWdwState

Applies to: ~>5.0

procedure SaveWdwState(
  const Left, Top, Width, Height, State: Integer
); virtual; abstract;

Description

Protected method used to write a window’s size, position and state to storage.

This virtual abstract method must be overridden by descendant components to save the window’s state, size and position to a supported storage type.

The position of the window is given by the Left and Top parameters, the size by the Width and Height parameters and the state by the State parameter. State is the ordinal value of a member of the TWindowState enumeration: wsMinimized, wsMaximized or wsNormal. The parameter values should be saved in a way that allows them to be identified and associated with the window when read back in.

SaveWdwState is called internally by the Save method.