C
cat.yy
Unregistered / Unconfirmed
GUEST, unregistred user!
; procedure WMMouse(var _Msg:TMessage); message WM_LBUTTONDOWN;
......
procedure TForm1.WMMouse(var _Msg:TMessage);
begin
inherited;
if Msg.Result = MK_LBUTTON then
Msg.Result := MK_RBUTTON;
end;
<- 这样不行
procedure TForm1.WMMouse(var _Msg:TMessage);
begin
inherited;
SendMessage(handle, WM_RBUTTONDOWN, 0, 0);
end;
<- 这样也不行
我想这样:
---------------------
鼠标左键按下 让系统误以为是右键按下 从而弹出右键菜单
......
procedure TForm1.WMMouse(var _Msg:TMessage);
begin
inherited;
if Msg.Result = MK_LBUTTON then
Msg.Result := MK_RBUTTON;
end;
<- 这样不行
procedure TForm1.WMMouse(var _Msg:TMessage);
begin
inherited;
SendMessage(handle, WM_RBUTTONDOWN, 0, 0);
end;
<- 这样也不行
我想这样:
---------------------
鼠标左键按下 让系统误以为是右键按下 从而弹出右键菜单