procedure TForm1.Timer1Timer(Sender: TObject);
var keystate:TKeyboardState;
begin
GetKeyboardState(keystate);
if keystate[vk_rbutton] and $80 <>0 then
exit;
end;
var keystate:TKeyboardState;
begin
GetKeyboardState(keystate);
if keystate[vk_rbutton] and $80 <>0 then
exit;
end;
解决方案 »
- Delphi 调用SQLite 的OBJ
- 怎么在程序里打开阿里旺旺呢?ShellExecute会跳出IE
- delphi7中用了第三方控件mscomm 生成的exe文件怎么在其他机器上打不开
- 生日查询的问题
- 關於EHLIB的問題
- 哪位知道d6下类似TColorMemo的空间,最好有源码,先谢了?
- 关于无线网络拓扑生成系统,如何根据节点信息生成拓扑图?
- 网页下载的难题咨询
- table1.filter:='BOOKCODE='+edtbookcode.Text+'*',应该如何写呢?
- 这语句不可能的错的呀???快帮我看看!!!
- 关于在程序中加入图片?
- ClientDataSet.SaveToFile怎么使用?
Shift: TShiftState; X, Y: Integer);
begin if button=mbleft then
exit
else
begin
PopupMenu1.popup(Self.Left+Button1.Left+Button1.Width+10,Self.Top+Button1.top+Button1.Height-30);
end;end;
Shift: TShiftState; X, Y: Integer);
begin if button=mbleft then
exit
else
begin
PopupMenu1.popup(Self.Left+Button1.Left+Button1.Width+10,Self.Top+Button1.top+Button1.Height-30);
end;end;
procedure My_FormOperate(var Message: TMessage); message WM_MBUTTONDOWN;procedure TForm_Main.My_FormOperate(var Message: TMessage);
begin
Message.??? = 0
end;
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;type
TForm1 = class(TForm)
procedure FormShow(Sender: TObject);
private
{ Private declarations }
procedure MyProcedure(var Msg: TMsg; var Handled: Boolean);
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}
procedure TForm1.MyProcedure(var Msg: TMsg; var Handled: Boolean);
begin
if Msg.message=WM_RBUTTONDOWN then
Msg.message:=WM_NULL;
end;
procedure TForm1.FormShow(Sender: TObject);
begin
Application.OnMessage:=MyProcedure;
end;end.