File:
[RetroPC.NET] /
np2 /
macos9 /
dialog /
d_resume.cpp
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Fri Oct 24 04:31:58 2003 JST (22 years ago) by
yui
Branches:
MAIN
CVS tags:
VER_0_82_x64,
VER_0_82,
VER_0_81A,
VER_0_81,
VER_0_80,
VER_0_79,
VER_0_78,
VER_0_77,
VER_0_76,
VER_0_75,
VER_0_74,
VER_0_73,
VER_0_72,
VER_0_71,
VER_0_70,
HEAD
fix MacOS9 (T.Yui)
#include "compiler.h"
#include "resource.h"
#include "dialog.h"
#include "dialogs.h"
void ResumeErrorDialogProc(void) {
DialogPtr hDlg;
int done;
short item;
hDlg = GetNewDialog(IDD_RESUMEERROR, NULL, (WindowPtr)-1);
if (!hDlg) {
return;
}
SetDialogDefaultItem(hDlg, IDOK);
done = 0;
while(!done) {
ModalDialog(NULL, &item);
switch(item) {
case IDOK:
done = 1;
break;
}
}
DisposeDialog(hDlg);
}
int ResumeWarningDialogProc(const char *string) {
DialogPtr hDlg;
Str255 str;
int done;
short item;
hDlg = GetNewDialog(IDD_RESUMEWARNING, NULL, (WindowPtr)-1);
if (!hDlg) {
return(IDCANCEL);
}
mkstr255(str, string);
SetDialogItemText(GetDlgItem(hDlg, IDC_RESUMEREASON), str);
SetDialogDefaultItem(hDlg, IDOK);
SetDialogCancelItem(hDlg, IDCANCEL);
done = 0;
while(!done) {
ModalDialog(NULL, &item);
switch(item) {
case IDOK:
case IDCANCEL:
case IDC_RESUMEEXIT:
done = item;
break;
}
}
DisposeDialog(hDlg);
return(done);
}
RetroPC.NET-CVS <cvs@retropc.net>