home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / FontMancer.sit / FontMancer / Common / About.c next >
C/C++ Source or Header  |  1996-06-21  |  708b  |  31 lines

  1. #include "About.h"
  2. #include "FontMancer.h"
  3. #include "StandardEvent.h"
  4. #include <Sound.h>
  5.  
  6. extern Boolean    gInBackground;
  7. extern Boolean    gSManager;
  8.  
  9. void DisplayAboutBox() {
  10.  
  11.     DialogPtr            AboutDlg;
  12.     short                itemHit = -1;
  13.     Handle                hSound;
  14.  
  15.     gInBackground = TRUE;
  16.     DoActivateMainWindow();
  17.     /*hSound = GetResource('snd ',128);
  18.     HLock(hSound);*/
  19.     AboutDlg = GetNewDialog(rAboutBox,0,(WindowPtr) -1L);
  20.     SetDialogDefaultItem(AboutDlg,ok);
  21.     while (itemHit != ok) {
  22.         ModalDialog(NIL,&itemHit);
  23.         //if (itemHit == 2 && hSound && gSManager)
  24.         //    SndPlay(NIL,(SndListHandle) hSound,FALSE);
  25.     }
  26.     /*HUnlock(hSound);
  27.     ReleaseResource(hSound);*/
  28.     DisposeDialog(AboutDlg);
  29.     gInBackground = FALSE;
  30.     DoActivateMainWindow();
  31. }