|
{$R StPApp.RES}
{$I StPApp.INC}
type
TStundenplanApplication
= object( TApplication
)
procedure
InitMainWindow;
virtual;
end;
PStundenplanWindow
= ^TStundenplanWindow;
TStundenplanWindow
= object( TWindow
)
constructor
Init(AParent: PWindowsObject; ATitle: PChar);
destructor
Done; virtual;
function
CanClose; virtual;
procedure
cmBeenden (var Msg:TMessage);virtual
cm_First + cm_DateiBeenden;
end;
destructor TStundenplanWindow.Done;
begin
{ TWindow.Done; }
{ bei TPW 1.0 / TPW 1.5 }
inherited Done;
end;
function TStundenplanWindow.CanClose: Boolean;
var Msg: TMessage;
begin
CanClose:=False;
CanClose:=BWCCMessageBox(HWindow, 'Das Programm wirklich
beenden?',
'Hinweis', mb_IconQuestion + mb_YesNo + mb_DefButton2) = idYes;
end;
procedure TStundenplanWindow.CMBeenden(var Msg: TMessage);
begin
CloseWindow;
end;
|