I wrote the following code:
procedure MouseWheel(var Msg:TWMMouseWheel);message WM_MOUSEHWHEEL;
I used it for a component based on TPanel (TMyP=class(TPanel))
(Notice that I don’t want to use TCustomPanel due to my own reasons)
But anyway the event is not called when I use mouse wheel on the panel.
Please Help me!
The mouse wheel messages are sent to the control with the focus. And panels usually aren’t focusable.
I use this TApplicationEvents.OnMessage handler in my applications to send the mouse wheel message to the window under the mouse cursor instead of the focused control.