RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObject::DefaultHandler Method

Provides the interface for a method that processes message records.

Pascal
procedure DefaultHandler(var Message); virtual;
C++
virtual DefaultHandler(var  Message);

System::TObject::DefaultHandler is called by System::TObject::Dispatch when it cannot find a method for a particular message. System::TObject::DefaultHandler provides message handling for all messages for which an object does not have specific handlers. Descendant classes that process messages override System::TObject::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 System::TObject::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.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!