home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mnth0109.zip / Timur / window.c < prev    next >
Text File  |  1993-04-04  |  831b  |  31 lines

  1. /* WINDOW.C - controls & variables for the main window
  2.  
  3. Copyright (c) 1993 Timur Tabi
  4. Copyright (c) 1993 Fasa Corporation
  5.  
  6. The following trademarks are the property of Fasa Corporation:
  7. BattleTech, CityTech, AeroTech, MechWarrior, BattleMech, and 'Mech.
  8. The use of these trademarks should not be construed as a challenge to these marks.
  9.  
  10. */
  11.  
  12. #define INCL_WINWINDOWMGR
  13. #include <os2.h>
  14. #include <stdio.h>
  15.  
  16. #define WINDOW_C
  17. #include "window.h"
  18.  
  19. void WindowSetTitle(char *szMapName) {
  20. /* This function sets the title of the window.  If szMapName is NULL, then the title says ".Untitled"
  21. */
  22.   char sz[128];
  23.  
  24.   if (!szMapName)
  25.     WinSetWindowText(hwndFrame,"The Ultimate OS/2 Game - .Untitled");
  26.   else {
  27.     sprintf(sz,"The Ultimate OS/2 Game - %s",szMapName);
  28.     WinSetWindowText(hwndFrame,sz);
  29.   }
  30. }
  31.