给个例子好吗?

解决方案 »

  1.   

    unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs;type
      TForm1 = class(TForm)
      private
        { Private declarations }
        procedure WMMOVE(var Msg: TMessage); message WM_MOVE;
        procedure CMMouseEnter(var Msg:TMessage);message CM_MouseEnter;
        procedure CMMouseLeave(var Msg:TMessage);message CM_MouseLeave;  public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}
    procedure tForm1.CMMouseEnter(var Msg: TMessage);
    begin
      Inherited;
      if Form1.Top<0 then Form1.Top:=0;
      Msg.Result:=0;
    end;procedure tForm1.CMMouseLeave(var Msg: TMessage);
    var pt: TPoint;
    begin
        Inherited;
        GetCursorPos(pt);
        if PtInRect(Self.BoundsRect, pt) then Exit;
        Form1.Top:=0-Form1.Height +5;
    end;procedure tForm1.WMMOVE(var Msg: TMessage);
    var pt: TPoint;
    begin
        Inherited;
        GetCursorPos(pt);
        if PtInRect(Self.BoundsRect, pt) then Exit;
        Form1.Top:=0-Form1.Height +5;
    end;
    end.
      

  2.   

    从Appbar继承的话最简单了,只要两三句代码就可以了,例子我有
      

  3.   

    to:ljmanage(过客) 
    能把例子给我吗?
      

  4.   

    [email protected]
    可以给个例子看看吗?
      

  5.   

    [email protected]
    我也来一份吧。谢了!
      

  6.   

    [email protected]
    我也要!
    顶!
      

  7.   

    [email protected]
    我也要啊,呵呵
      

  8.   

    ljmanage(过客)靠这不是玩大家吗,发上来啊。不是就几句话吗?
    webnetmax(衩衩裤)的办法也挺简单!
      

  9.   

    webnetmax(衩衩裤)的也很好用哦,我试了。
      

  10.   

    to:ljmanage(过客) 
    能把例子给我吗?
     E_mail: [email protected]
      

  11.   

    ljmanage(过客)说的是最理想的作法。
      

  12.   

    webnetmax(衩衩裤) 的不错!我也试过了
      

  13.   

    贴出来不是很方便嘛》Ctrl+c&Ctrl+v
      

  14.   

    webnetmax(衩衩裤)的就是不错,呵呵:)
      

  15.   

    我也要
    [email protected]
      

  16.   

    我不要!
    webnetmax(衩衩裤)的就是不错!