一点分都不给,你行 ||-_-!! if (pagecontrolfcp.PageCount > 0)and(Msg.message = WM_LBUTTONDBLCLK) then if Msg.hwnd=PageControlfcp.ActivePage.Handle then begin runFileClose(Currenteditor);//鼠标双击执行的操作 end; Handled:=False;
procedure TfrmFcp.FormCreate(Sender: TObject); begin Application.OnMessage:=AppMessage; end;procedure TfrmFcp.AppMessage(var Msg: TMsg; var Handled: Boolean); begin if (pagecontrolfcp.PageCount > 0)and(Msg.message = WM_LBUTTONDBLCLK) then if Msg.hwnd=PageControlfcp.ActivePage.Handle then begin runFileClose(Currenteditor); end; Handled:=False; end;
if Msg.hwnd=PageControlfcp.ActivePage.Handle then
begin
runFileClose(Currenteditor);//鼠标双击执行的操作
end;
Handled:=False;
begin
Application.OnMessage:=AppMessage;
end;procedure TfrmFcp.AppMessage(var Msg: TMsg; var Handled: Boolean);
begin
if (pagecontrolfcp.PageCount > 0)and(Msg.message = WM_LBUTTONDBLCLK) then
if Msg.hwnd=PageControlfcp.ActivePage.Handle then
begin
runFileClose(Currenteditor);
end;
Handled:=False;
end;