[Lazarus] Lazarus and Windows messages
ik
idokan at gmail.com
Mon Jul 2 21:27:03 CEST 2012
On Mon, Jul 2, 2012 at 10:16 PM, Mattias Gaertner <nc-gaertnma at netcologne.de
> wrote:
> On Mon, 2 Jul 2012 22:00:05 +0300
> ik <idokan at gmail.com> wrote:
>
> > Hello,
> >
> > It's the first time that I use Lazarus with Windows, and almost 10 years
> > since I last developed to Windows.
> >
> > I'm trying to capture the windows message WM_QUERYENDSESSION (that exists
> > on JwaWinUser).
> >
> > I did something like this:
> >
> > TForm1 = class(TForm)
> > ...
> > private
> > procedure WMQueryEndSession(var Msg : TLMessage); message
> > WM_QUERYENDSESSION
>
> Why not simply drop a ApplicationProperties onto the form and set the
> OnQueryEndSession event?
>
Because I must know when the log off, and do some tasks before I can end
the program. I must know that the endsession request was made because of
such request, and OnQueryEndSession does not contain such details as far as
i can see.
>
> Mattias
>
Ido
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120702/46a7d4fd/attachment-0003.html>
More information about the Lazarus
mailing list