Vcl.Controls.TControl.DefaultHandler

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DefaultHandler(var Message); override;

C++

virtual void __fastcall DefaultHandler(void *Message);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Provides message handling for all messages that do not have specific handlers.

Override DefaultHandler to extend the default handling of messages. DefaultHandler is the final opportunity for component writers to handle messages to controls. The method referenced by WindowProc provides the first opportunity. Individual message methods such as Click provide additional opportunities.

DefaultHandler handles the messages Windows sends to manage the control's text: WM_GETTEXT, WM_SETTEXT, and WM_GETTEXTLENGTH.

See Also