Sign in Join
FPDoc Onlineexperiment

TCustomForm.WMWindowPosChanged procedure

Member of TCustomFormprotectedIn unit Forms

Handles the LM_WINDOWPOSCHANGED window message for the form.

Declaration

pascal
procedure WMWindowPosChanged(var Message: TLMWindowPosChanged); message

Description

Re-implements the method from the ancestor class.

Ensures that auto-sizing is disabled for a position message to a top-level form (where Parent is not assigned), or from the LCL interface when new height or width values are provided. This is done by including the value fsDisableAutoSize in the FormState property.

Calls the inherited method prior to exit to apply the position and bounds for the form.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.