Vcl.Forms.TCustomForm.DefaultHandler

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DefaultHandler(var Message); override;

C++

virtual void __fastcall DefaultHandler(void *Message);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

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

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.

See Also