zoukankan      html  css  js  c++  java
  • delphi中屏蔽浏览器控件右键菜单

    procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG;
      var Handled: Boolean);
    var
      mPoint : TPoint;
    begin
      if IsChild(WebBrowser1.Handle, Msg.Hwnd) and
         ((Msg.Message = WM_RBUTTONDOWN) or (Msg.Message = WM_RBUTTONUP)) then
      begin
        GetCursorPos(mPoint);
        //PopupMenu1.Popup(mPoint.X, mPoint.Y);  这句可以用自己的菜单替换默认菜单
        Handled:=True;
      end;
  • 相关阅读:
    重装Win10系统的非常简单的操作教程
    Python
    Delphi
    Libs
    Windows Server
    Windows Server
    Delphi
    Delphi
    Delphi
    Delphi
  • 原文地址:https://www.cnblogs.com/chengxin1982/p/1510617.html
Copyright © 2011-2022 走看看