Skip to content

ElectronBrowserWindow.hookWindowMessage method

ElectronBrowserWindow › hookWindowMessage

Unofficial

Hooks a windows message. The callback is called when the message is received in the WndProc (Windows only).

Signature:

hookWindowMessage(message: number, callback: (wParam: unknown, lParam: unknown) => void): void

Parameters:

Parameter Type Description
message number The message identifier.
callback (wParam: unknown, lParam: unknown) => void The callback invoked when the message is received.

Returns: void