?? unitfrmmain.pas
字號:
unit unitFrmMain;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
procedure WMMOVE(var Msg: TMessage); message WM_MOVE;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
{ TForm1 }
procedure TForm1.WMMOVE(var Msg: TMessage);
begin
begin
inherited;
if (Left < 10) and (Top < 10) and
(Left <> 0) and (Top <> 0) then // 設定移動到左上角 10 點范圍內時貼到邊上去
begin
Left := 0;
Top := 0;
Msg.Result := 0;
end;
end;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -