| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Window Title |
Hello Phil!
Friday August 30 1996 12:43, Phil Crown wrote to Doug Nazar:
PC> I believe he meant from a Vio app.
I realized it was from a VIO app. That was just how I'd first go about trying it.
PC> I tried the example posted, WinSetTitle() a 16-bit API, and it crashed
PC> my program too, using BCOS2.
I did a little checking and could find no docs on WinSetTitle but found it
in OS2386.LIB so I guessed at the prototype and voila!
-- CUT -------- Begin test.cpp -------- CUT --
#include
#define INCL_WIN
#include
#ifdef __cplusplus
extern "C"
{
#define WinSetTitle WIN16SETTITLE
APIRET16 APIENTRY16 WinSetTitle (HAB hab,
PSZ title);
}
#endif
int main(int argc, char* argv[])
{
if (argc > 1)
WinSetTitle(0, argv[1]);
getch();
return 0;
}
-- CUT --------- End test.cpp --------- CUT --
Doug
--- GoldED/2 3.00.Alpha1+
* Origin: Realm of the Dragons - `Where thy mind hath no limits' (1:250/516)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 250/516 101 99 3615/50 396/1 270/101 712/515 711/808 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™.