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);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!