Winapi.Messages.SendGetIntMessage

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SendGetIntMessage(Handle: HWND; Msg: UINT; var WParam: Integer; var LParam: Integer): LRESULT;

C++

extern DELPHI_PACKAGE NativeInt __fastcall SendGetIntMessage(HWND Handle, unsigned Msg, int &WParam, int &LParam);

Properties

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

Description

Send Windows message, sending and receiving integer values.

SendGetIntMessage 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. A value may be sent and returned.

LParam is an integer LPARAM for the message, depending on Msg. A value may be sent and returned.

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