procedure QueryEndSession(var Msg:TMessage);Message WM_QueryEndSession; |
procedure TForm1.QueryEndSession(var Msg:TMessage); begin Msg.Result:=0; end; |
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) private { Private declarations } procedure QueryEndSession(var Msg:TMessage);Message WM_QueryEndSession; public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.QueryEndSession(var Msg:TMessage); begin Msg.Result:=0; end; end. |