TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Francisco Sedano
from: John Gladkih
date: 1996-02-07 15:12:40
subject: Re: Changing title

Francisco,

 FS> Anybody knows how to change the program's window title (and

ohhh. I don`t know :-(

 FS> taskbar string)

no problem, for example:

    HSWITCH MyHandle;
    SWCNTRL MyTaskInfo;

    MyHandle = WinQuerySwitchHandle( NULLHANDLE, getpid() );

    if( MyHandle!=NULLHANDLE )
      if( !WinQuerySwitchEntry( MyHandle, &MyTaskInfo ) )
      {
        strcpy( MyTaskInfo.szSwtitle, ">" );
        WinChangeSwitchEntry( MyHandle, &MyTaskInfo );
      }

--
John,
john{at}access.simtel.ru

--- The Brake! V1.0.bI625
* Origin: Bad Data: Another World, Simbirsk, Russia (2:5051/16)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 5051/16 15 5020/400 464/200 72 34 5100/8 396/1 270/101 712/515
@PATH: 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.