Vcl.Controls.TControl.MouseWheelHandler

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MouseWheelHandler(var Message: TMessage); dynamic;

C++

DYNAMIC void __fastcall MouseWheelHandler(Winapi::Messages::TMessage &Message);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Dispatches messages received from a mouse wheel.

The WndProc method calls MouseWheelHandler when it receives a mouse wheel message. MouseWheelHandler checks whether the windowed control is embedded in a form, and if so, calls the form's MouseWheelHandler method. This allows the form to respond to mouse wheel messages before they are handled by individual controls. If the windowed control is not in a form, MouseWheelHandler passes the mouse wheel message to the Perform method, which generates an OnMouseWheel event, followed (if necessary) by an OnMouseWheelUp or OnMouseWheelDown event.

See Also