JVCL Help:DotNetMessageHandler
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: DotNetMessageHandler procedure
[+] JvDotNetUtils.pas Functions
Search in JVCL Help
Search in all projectsSummary
Provides centralized message handling for the DotNet controls.
Pascal
run\JvDotNetUtils.pas
procedureDotNetMessageHandler(varMsg: TMessage; AControl: TWinControl; AColor: TColor; varInControl: Boolean);
Parameters
Parameters | Description |
var Msg: TMessage | The windows message to handle. |
AControl: TWinControl | The control sending the message. |
AColor: TColor | The background color of the control. |
var InControl: Boolean | Modified if the message is either CM_MOUSELEAVE (set to false) or CM_MOUSEENTER (set to true). |
Description
DotNetMessageHandler reacts to specific windows messages and draws a control according to the message received and the current location of the mouse. Normally, you don't need to call this procedure since it is called from within a DotNet style control. If you create your own DotNet style controls, replace the WindowProc of your component and call DotNetMessageHandler after first passing the message to the old WindowProc.
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