System.TObject.DefaultHandler

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From System.pas

	procedure DefaultHandler(var Message); virtual;


Unit: System

Type: method

Visibility: public

Member Of: TObject

C++ Information

From System.hpp

	virtual void __fastcall DefaultHandler(void * Message);


Unit: System

Type: method

Visibility: public

Member Of: 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 Samples


Personal tools
Translations
Newest Version