|
I used SPY++ to find that when the fourth button of the mouse was clicked, the message sent was 0x020B, so I overloaded the window function to intercept this message.
procedure TForm1.WndProc(var Msg: TMessage);
begin
if Msg.Msg = 523 then
ShowMessage('Catch the mouse fifth key message!');
inherited;
end;
If a single Form is used, this message can be intercepted. But when I put a Panel on this Form (the property is set to Client), I can't intercept this message. I want to ask you heroes, is the window function only for Form? If I have put a lot of controls on this Form, how should I intercept this message, thank you! |
|