[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.WndProc

Extends the message processing loop for the grid control.

Declaration

Source position: grids.pas line 1218

protected procedure TCustomGrid.WndProc(

  var TheMessage: TLMessage

); override;

Arguments

TheMessage

  

Message examined in the method.

Description

WndProc is an overridden method in TCustomGrid. It extends the ancestor method to provide design-time support for the grid control. LM_HSCROLL and LM_VSCROLL messages are not processed at design-time.

For the Windows platform, message processing is halted when a LM_SIZE message is being processed. Windows sends WM_SIZE when showing or hiding scroll bars, and can occur during the DoOnChangeBounds method.

WndProc calls the inherited method to handle focus, mouse, key, and state change messages.

WndProc ensures that a TGridScroller instance allocated for the class is freed after a scroll message has been handled and the grid state has been updated.

See also

TGridScroller

  

Scrolls an associated grid when a column or row is dragged beyond the client area for the control.

TGridState

  

Enumerated type with grid state values.

TWinControl.WndProc

  

Adds special handling for focus and input messages, and notifies the DockManager.


Version 4.0 Generated 2025-05-03 Home