Equinox Online Help - Language Reference - A to Z

Home

GetMessageParameters

Applies to
SyntaxGetMessageParameters hWndItem, MsgItem, wParamItem, lParamItem
Action[Statement] Retrieves the arguments from the latest Windows message.
ScopeUsable anywhere.
Notes

This advanced statement allows an Equinox Notify method to process Windows input messages as selected via the system workarea SysTrapFlag. The four parameters retrieve the message parameters as supplied to the window procedure. If bit 1 of SysTrapFlag is set during the event, Equinox ignores the message.

CategoryWindows and DLLs
See Also Bcopy, External, FontHandle, GetNotifyParameters, Hiword, Loword, MakeLong, PaletteRGB, RGB, RGBValues
Example

This example allows F10 to act as an accelerator key to launch Notepad.

| At start event
SysTrapFlag = 2

| Notify event
Define VK_F10 0x79
Define WM_SYSKEYDOWN 0x104

handle wnd
uint32 msg
uintOS wParam
intOS lParam

if SysNotifyType <> -1 then exit method

GetMessageParameters wnd, msg, wParam, lParam

if msg=WM_SYSKEYDOWN And wParam=VK_F10 then
SysTrapFlag = SysTrapFlag Or 1
execute Task "notepad"
end if