System.TObject.DefaultHandler

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DefaultHandler(var Message); virtual;

C++

virtual void __fastcall DefaultHandler(void *Message);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.pas
systobj.h
System TObject

Description

Provides the interface for a method that processes message records.

DefaultHandler is called by Dispatch when it cannot find a method for a particular message. DefaultHandler provides message handling for all messages for which an object does not have specific handlers. Descendant classes that process messages override DefaultHandler according to the types of messages they handle.

Note: In a Delphi message-handling method, calling inherited results in a call to the ancestor's DefaultHandler method only if that ancestor does not specify a message method for the particular message being handled. Otherwise, calling inherited results in a call to the specific handler for that type of message.

See Also

Code Examples