On Sat, 19 Dec 2009, Xavi wrote: Hi,
> I have HB_SET_CANCEL = FALSE by default and MinGW compile with -mwindows > Thanks to you and Przemek for your help. > --- t2.prg > REQUEST HB_GT_WIN_DEFAULT > ANNOUNCE HB_GTSYS > PROCEDURE Main() > SetCancel(.F.) > ? "Click [X] to close windows console " > while( LastKey() != 27 ) > Inkey( 1 ) > enddo > RETURN > --- > Use with MINGW 'hbmk2 t2.prg -gui' to build it. > SetCalcel(.F.) don't is executed. Now it's clear what is the problem and you even wrote about it in gtwin.c attached to your 1-st message. SetCalcel(.F.) has no effect because SetConsoleCtrlHandler() is executed before AllocConsole(). > Is it right now? No it isn't. AllocConsole() should be moved few lines down. Thank you. best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour