The WMQueryEndSession tries to do the pre-widows action, but the WMQueryEndSession does not appear to occur and does not perform the action in the WMQueryEndSession.Please tell me the possible cause.
Development Environment
Parallels Desktop (10.2.0) + Windows 7 sp1 (version 6.1, build 7601, 64-bit) + RAD Studio XW7 (Delphi version 21.0.17707.5020)
What kind of code did it not work?
As for the message processing itself, you should receive a message at the end of Windows using the code below.
I experimented with hidden and minimalized conditions, but I got a message.
Additional
After I wrote it down, I noticed that the following is the case of VCL, and the case of FMX is different.
TForm1=class(TForm)
procedure WMQueryEndSession (var Msg:TMessage); message WM_QUERYENDSESSION;
end;
procedure TForm1.WMQueryEndSession(var Msg:TMessage); message WM_QUERYENDSESSION;
begin
ShowMessage('a');
Msg.Result: = 1;
end;
© 2024 OneMinuteCode. All rights reserved.