RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomEdit.DefaultHandler Method

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

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

Override DefaultHandler to change the default message handling for the edit control. The Message parameter can be cast to a TMessage type, to obtain the WParam, LParam, and Result of the message. If the Result of the message is non-zero, the message has already been handled. Set the Result field to a non-zero value to prevent further processing of the message by the inherited method.

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

WindowProc 

DefWndProc 

TMessage

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