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++

int __fastcall Perform(unsigned Msg, unsigned WParam, int LParam)/* overload */;
int __fastcall Perform(unsigned Msg, unsigned WParam, System::WideChar * LParam)/* overload */;
int __fastcall Perform(unsigned Msg, unsigned 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