Winapi.Messages.SendStructMessage

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SendStructMessage(Handle: HWND; Msg: UINT; WParam: WPARAM; const LParam): LRESULT;

C++

extern DELPHI_PACKAGE NativeInt __fastcall SendStructMessage(HWND Handle, unsigned Msg, NativeUInt WParam, const void *LParam);

Properties

Type Visibility Source Unit Parent
function public
Winapi.Messages.pas
Winapi.Messages.hpp
Winapi.Messages Winapi.Messages

Description

Send Windows message, sending data structure.

SendStructMessage 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 data structure 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


Code Examples