File:  [RetroPC.NET] / np2 / macos9 / dialog / d_about.cpp
Revision 1.3: download - view: text, annotated - select for diffs
Mon Nov 10 08:42:06 2003 JST (21 years, 11 months 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, HEAD
[MacOS9] fix Mouse/Keyboard (T.Yui)

#include	"compiler.h"
#include	"resource.h"
#include	"dialog.h"
#include	"dialogs.h"
#include	"np2ver.h"
#include	"pccore.h"


#if TARGET_API_MAC_CARBON
static const char subversion[] = " (Carbon)";
#else
static const char subversion[] = " (Classic)";
#endif

void AboutDialogProc(void) {

	DialogPtr	hDlg;
	char		work[64];
	Str255		verstr;
	int			done;
	short		item;

	hDlg = GetNewDialog(IDD_ABOUT, NULL, (WindowPtr)-1);
	if (!hDlg) {
		return;
	}
	milstr_ncpy(work, np2version, sizeof(work));
#if defined(NP2VER_MACOS9)
	milstr_ncat(work, NP2VER_MACOS9, sizeof(work));
#endif
	milstr_ncat(work, subversion, sizeof(work));
	mkstr255(verstr, work);
	SetDialogItemText(GetDlgItem(hDlg, IDD_VERSION), verstr);
	SetDialogDefaultItem(hDlg, IDOK);

	done = 0;
	while(!done) {
		ModalDialog(NULL, &item);
		switch(item) {
			case IDOK:
				done = 1;
				break;
		}
	}
	DisposeDialog(hDlg);
}


RetroPC.NET-CVS <cvs@retropc.net>