RAD Studio VCL Reference
TControl.DefaultHandler Method

Provides message handling for all messages that do not have specific handlers.

procedure DefaultHandler(var Message); override;
virtual __fastcall DefaultHandler( Message);

Override DefaultHandler to extend the default handling of messages. DefaultHandler is the final opportunity for component writers to handle messages to controls. The method referenced by WindowProc provides the first opportunity. Individual message methods such as Click provide additional opportunities. 

DefaultHandler handles the messages Windows sends to manage the control's text: WM_GETTEXT, WM_SETTEXT, and WM_GETTEXTLENGTH


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