RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.DefaultHandler Method

Provides message handling for all messages that the form does not fully process.

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

Override DefaultHandler to change the default message handling for the form. This is seldom necessary because messages can be handled by creating message methods. 

DefaultHandler passes any otherwise-unhandled messages to the form's window procedure by calling the CallWindowProc OS function.

Note: In Delphi code, calling inherited in a message-handling method results in a call to the ancestor's DefaultHandler method unless that ancestor specifies a handler for the message.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!