File:  [RetroPC.NET] / xmil / MacOSX / dialog / d_resume.cpp
Revision 1.1: download - view: text, annotated - select for diffs
Tue Aug 10 23:38:57 2004 JST (21 years, 2 months ago) by tk800
Branches: MAIN
CVS tags: HEAD
Add MacOSX[MacOSX](tk800)

#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>