Vcl.Controls.SendAppMessage

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SendAppMessage(Msg: Cardinal; WParam: WPARAM; LParam: LPARAM): LRESULT;

C++

extern DELPHI_PACKAGE NativeInt __fastcall SendAppMessage(unsigned Msg, NativeUInt WParam, NativeInt LParam);

Properties

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

Description

Sends a Windows message to the application.

Call SendAppMessage to send a Windows message to the global application object.

Msg represents the Windows Message code.

WParam represents the WParam of the message. Its interpretation depends on the value of Msg.

LParam represents the LParam of the message. Its interpretation depends on the value of Msg.

SendAppMessage returns the result provided by the application's window procedure. If the application did not handle the message, SendAppMessage returns 0.

See Also