zoukankan      html  css  js  c++  java
  • 不可移动的窗体

     procedure windowsposchange(var Msg:TWMWINDOWPOSCHANGING);message WM_WINDOWPOSCHANGING;

    var
      Form13: TForm13;
      //
      oleft:integer;
      otop:integer;
      ointeger;
      oHeight:integer;


    implementation

    {$R *.dfm}

    procedure TForm13.FormCreate(Sender: TObject);
    begin
    oleft:=Left;
    otop:=Top;
    o=Width;
    oheight:=Height;
    end;

    procedure TForm13.windowsposchange(var Msg:TWMWINDOWPOSCHANGING);
    begin
      Msg.WindowPos.x:=oleft;
      Msg.windowpos.y:=otop;
      Msg.windowpos.cx:=owidth;
      Msg.windowpos.cy:=oheight;
      inherited;
    end;

  • 相关阅读:
    2016/4/27 xml
    2016/4/27 网络编程
    2016/4/25 java io
    mysql 基础列题
    数据库的语法
    数据库
    io流
    xml
    网络编程
    gui2
  • 原文地址:https://www.cnblogs.com/huking/p/1700080.html
Copyright © 2011-2022 走看看