Vcl.Controls.TControl.Perform

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Perform(Msg: Cardinal; WParam: WPARAM; LParam: LPARAM): LRESULT; overload;
function Perform(Msg: Cardinal; WParam: WPARAM; LParam: PChar): LRESULT; overload;
function Perform(Msg: Cardinal; WParam: WPARAM; var LParam: TRect): LRESULT; overload;

C++

NativeInt __fastcall Perform(unsigned Msg, NativeUInt WParam, NativeInt LParam)/* overload */;
NativeInt __fastcall Perform(unsigned Msg, NativeUInt WParam, System::WideChar * LParam)/* overload */;
NativeInt __fastcall Perform(unsigned Msg, NativeUInt WParam, System::Types::TRect &LParam)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Responds as if the control received a specified Windows message.

Call Perform to bypass the Windows message queue and send a message directly to the control's window procedure.

Perform fills a message record (of type TMessage) with the message ID passed in the Msg parameter, the message parameters passed in WParam and LParam, and a result field of zero. Perform then passes the message record to the WindowProc method for processing.

See Also

Code Examples