[Harbour] Re: Trap / run routine when MS Windows red X box closed?

smu johnson smujohnson at gmail.com
Tue Mar 2 04:42:50 EST 2010


May joy and happiness forever come your way!

On Tue, Mar 2, 2010 at 1:40 AM, Saulius Zrelskis <labitas at gmail.com> wrote:

> > Oh yes, so you are using GTWIN.
> > No, for this GT "Close -> X" button cannot be manipulated.
>
> It can, through API SetConsoleCtrlHandler(). Handles events:
> CTRL_C_EVENT
> CTRL_BREAK_EVENT
> CTRL_CLOSE_EVENT             <<<===
> CTRL_LOGOFF_EVENT
> CTRL_SHUTDOWN_EVENT
>
> Best regards,
> Saulius
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour at harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>



-- 
smu johnson <smujohnson at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.harbour-project.org/pipermail/harbour/attachments/20100302/f5e82edd/attachment.html


More information about the Harbour mailing list