JVCL Help:TJvShellHook.OnShellMessage

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when a shell message is received.


Pascal

 TJvShellHookEvent = procedure (Sender: TObject; var Msg: TMessage) ofobject;
propertyOnShellMessage: TJvShellHookEvent;


Parameters

Parameters Description
Msg The message received. lParam should be interpreted according to the value of wParam.
Sender The object that called the event.


Description

Write a handler for the OnShellMessage event to take specific action when a shell message is received by the component. Depending on the value of Msg.wParam, Msg.lParam contains various data as described in the table below.

wParam lParam
HSHELL_GETMINRECT A pointer to a SHELLHOOKINFO structure.
HSHELL_WINDOWACTIVATEED The HWND handle of the activated window.
HSHELL_RUDEAPPACTIVATEED The HWND handle of the activated window.
HSHELL_WINDOWREPLACING The HWND handle of the window replacing the top-level window.
HSHELL_WINDOWREPLACED The HWND handle of the window being replaced.
HSHELL_WINDOWCREATED The HWND handle of the window being created.
HSHELL_WINDOWDESTROYED The HWND handle of the top-level window being destroyed.
HSHELL_ACTIVATESHELLWINDOW Not used.
HSHELL_TASKMAN Can be ignored.
HSHELL_REDRAW The HWND handle of the window that needs to be redrawn.
HSHELL_FLASH The HWND handle of the window that needs to be flashed.
HSHELL_ENDTASK The HWND handle of the window that should be forced to exit.
HSHELL_APPCOMMAND The APPCOMMAND which has been unhandled by the application or other hooks. See WM_APPCOMMAND in the Windows API Help and use the function GET_APPCOMMAND_LPARAM to extract the parameter.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page