RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.SendAppMessage Function

Sends a Windows message to the application.

Pascal
function SendAppMessage(Msg: Cardinal; WParam: Longint; LParam: Longint): Longint;
C++
Longint SendAppMessage(unsigned Msg, Longint WParam, Longint LParam);

Controls

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. 

 

TApplication 

TControl 

TApplication 

TControl 

Application 

TMessage

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!