83450 |
...code:
procedure TForm1.wmParentNotify(var msg: TMessage); // Form1.FormStyle = fsMDIForm begin inherited; // If TWMParentNotify(Msg).Event = WM_DESTROY then begin showMessage('form closed!'); msg.result := 0; end; // if msg.WParamLo = WM_DESTROY then begin showMessage('form closed!'); msg.result := 0; end; end;