Hi Xavi, > Maybe is about CTRL_LOGOFF_EVENT, CTRL_SHUTDOWN_EVENT that is received only > by services. > But if so is a issue of Vista and Win7/2008, not ours, because the official > documentation nothing says about this, AFAIK.
The documentation was just not updated for Vista/Win7, I see you still didn't scroll down to user comments on your quoted page. > And no excuse for not correcting the current Harbour behavior, IMHO. Yes, but there is nothing to correct in this case. > Also in .NET (please see example Visual C++ and Platforms) .- > > http://msdn.microsoft.com/en-us/library/system.gc.keepalive%28VS.100%29.aspx > >> I tested it on XP x64, there there is a window >> asking for 'Cancel' and 'End Now', so even here >> this method cannot prevent the app to be closed >> by user. In any case it's not a SETCANCEL() thing, > > Just as DOS Clipper's programs. It's host environment behavior, not DOS Clipper program behavior. Did you test this effect on all possible MS-DOS host environments? F.e. Win9x DOS box, NTVDM on Win7, NTVDM on Vista? DosBox on any operating system? DOSEMU? They may be different, and they probably _are_ different. I see no need to try to hard-wire XP NTVDM specific behavior to our GTs, or to control such XP NTVDM-like behavior to SETCANCEL(). >> but maybe rather it could be the standard GTWIN >> behavior (without any extra setting). For sure >> it's not a HB_GTI_CLOSABLE setting either. Or, >> we just leave it as is. > > IMHO are two different targets, things, HB_GTI_CLOSABLE / SETCANCEL. > HB_GTI_CLOSABLE aims to modify the user interface (if possible). No, it aims to prevent the window being closed. > SETCANCEL aims to avoid interruption of the code execution by the user (if > possible). > BTW in te case of GTWVT, I don't think that changing the status of SETCANCEL > in response to WM_CLOSE meet the objective of SETCANCEL. SETCANCEL() controls the interpretation of Ctrl+C, which it does perfectly on all GTs in Harbour. Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour