Winapi.Messages.SendTextMessage
Delphi
function SendTextMessage(Handle: HWND; Msg: UINT; WParam: WPARAM; LParam: UnicodeString): LRESULT;
C++
extern DELPHI_PACKAGE NativeInt __fastcall SendTextMessage(HWND Handle, unsigned Msg, NativeUInt WParam, System::UnicodeString LParam)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Winapi.Messages.pas Winapi.Messages.hpp |
Winapi.Messages | Winapi.Messages |
Description
Send Windows message, sending text.
SendTextMessage calls the Windows SendMessage function and returns an LRESULT.
Handle is an HWND window handle.
Msg is the Windows message ID. This constant is exactly the same as the Windows message ID described in the Microsoft Windows SDK.
WParam is a WPARAM for the message, depending on Msg. The value is sent.
LParam is a string LPARAM for the message, depending on Msg. The value is sent.
Various records have been defined in the Messages unit to represent Windows messages. For instance, TWMCopy represents the message WM_COPY, TWMKeyDown represents WM_KEYDOWN, and so on.
See the Microsoft Windows SDK documentation for information on the Windows messages and their associated WPARAM and LPARAM.
See Also