• 透明输入框


    Code

     procedure HandleCTLColorEdit(var Msg: TWMCTLCOLOREDIT);message WM_CTLCOLOREDIT;

    procedure TForm1.Button2Click(Sender: TObject);
    var
      BMP: TBitmap;
    begin
      BMP := TBitmap.Create;
      BMP.LoadFromFile('C:\Documents and Settings\Administrator\桌面\未命名.bmp');
      Memo1.Brush.Bitmap := BMP;
      Memo1.Repaint;
      Bmp.Free;
    end;

    procedure TForm1.HandleCTLColorEdit(var Msg: TWMCTLCOLOREDIT);
    begin
      if Msg.ChildWnd = Memo1.Handle then begin
        SetBkMode(Msg.ChildDC, TRANSPARENT);
        Msg.Result := Memo1.Brush.Handle;
      end;

    end;

  • 相关阅读:
    shop++之language
    shop++改造之ResponseEntity的坑
    shop++改造之Filter类
    mysql关联模糊查询他表字段
    mysql一张表多个字段关联另一张表查询
    html页面导出为excel表格
    layui打印html页面转成pdf
    jQuery视频格式的验证
    jQuery图片灯箱和视频灯箱
    空间谱专题16:信号个数估计
  • 原文地址:https://www.cnblogs.com/chengxin1982/p/1457131.html
Copyright © 2020-2023  润新知