Setting a title on a CONSOLE window.

Setting a title on a CONSOLE window.

Postby HunterEC » Wed Mar 30, 2016 3:54 am

Guys:

I know this is legacy, but how do I set a title on a CONSOLE (text) window ? Thank you very much !
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Setting a title on a CONSOLE window.

Postby Antonio Linares » Wed Mar 30, 2016 6:19 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Setting a title on a CONSOLE window.

Postby HunterEC » Wed Mar 30, 2016 7:13 am

Antonio:

Thank you for the reply. Since it's not done via native Harbour, how do I implement this in my code ? Is there any Harbour function to do this ? Thank you very much !
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Setting a title on a CONSOLE window.

Postby Antonio Linares » Wed Mar 30, 2016 7:44 am

yourprg.prg

... your code ... // SetConsoleTitle( "test" )

#pragma BEGINDUMP

#include <windows.h>
#include <hbapi.h>

HB_FUNC( SETCONSOLETITLE )
{
   hb_retl( SetConsoleTitle( ( char * ) hb_parc( 1 ) ) );
}

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Setting a title on a CONSOLE window.

Postby HunterEC » Wed Mar 30, 2016 3:46 pm

Antonio:

Working great !!! Thank you very much !!!
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 106 guests