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 >
Wrap
C/C++ Source or Header
|
1996-06-21
|
708b
|
31 lines
#include "About.h"
#include "FontMancer.h"
#include "StandardEvent.h"
#include <Sound.h>
extern Boolean gInBackground;
extern Boolean gSManager;
void DisplayAboutBox() {
DialogPtr AboutDlg;
short itemHit = -1;
Handle hSound;
gInBackground = TRUE;
DoActivateMainWindow();
/*hSound = GetResource('snd ',128);
HLock(hSound);*/
AboutDlg = GetNewDialog(rAboutBox,0,(WindowPtr) -1L);
SetDialogDefaultItem(AboutDlg,ok);
while (itemHit != ok) {
ModalDialog(NIL,&itemHit);
//if (itemHit == 2 && hSound && gSManager)
// SndPlay(NIL,(SndListHandle) hSound,FALSE);
}
/*HUnlock(hSound);
ReleaseResource(hSound);*/
DisposeDialog(AboutDlg);
gInBackground = FALSE;
DoActivateMainWindow();
}