沈
沈前卫
Unregistered / Unconfirmed
GUEST, unregistred user!
/呵呵,再来个完整点的
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
procedure MyMouseLBTNDown(var Message:TMessage);message WM_NCLBUTTONDOWN;
procedure MyMouseMove(var Message:TMessage);message WM_NCMOUSEMOVE;
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
{ TForm1 }
procedure TForm1.MyMouseLBTNDown(var Message: TMessage);
begin
if Message.WParam=HTBOTTOMRIGHT then SetCursor(LoadCursor(0,IDC_HAND));
inherited;
end;
procedure TForm1.MyMouseMove(var Message: TMessage);
begin
if Message.WParam=HTBOTTOMRIGHT then SetCursor(LoadCursor(0,IDC_HAND));
inherited;
end;
end.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
procedure MyMouseLBTNDown(var Message:TMessage);message WM_NCLBUTTONDOWN;
procedure MyMouseMove(var Message:TMessage);message WM_NCMOUSEMOVE;
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
{ TForm1 }
procedure TForm1.MyMouseLBTNDown(var Message: TMessage);
begin
if Message.WParam=HTBOTTOMRIGHT then SetCursor(LoadCursor(0,IDC_HAND));
inherited;
end;
procedure TForm1.MyMouseMove(var Message: TMessage);
begin
if Message.WParam=HTBOTTOMRIGHT then SetCursor(LoadCursor(0,IDC_HAND));
inherited;
end;
end.