|
|
| version 1.4, 2003/11/08 17:54:27 | version 1.5, 2003/11/11 16:33:51 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "resource.h" | #include "resource.h" |
| #include "sysmng.h" | #include "sysmng.h" |
| #include "dialog.h" | |
| #include "pccore.h" | #include "pccore.h" |
| #include "fddfile.h" | #include "dialog.h" |
| #include "diskdrv.h" | #include "diskdrv.h" |
| #if 0 | |
| #include "newdisk.h" | |
| #endif | |
| #include "font.h" | #include "font.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "np2.h" | #include "np2.h" |
| Line 19 | Line 15 |
| #include "fdefine.h" | #include "fdefine.h" |
| #include "toolwin.h" | #include "toolwin.h" |
| static Handle GetDlgItem(DialogPtr hWnd, short pos) { | |
| Handle ret; | |
| Rect rct; | |
| short s; | |
| GetDialogItem(hWnd, pos, &s, &ret, &rct); | |
| return(ret); | |
| } | |
| void AboutDialogProc(void) { | |
| DialogPtr hDlg; | |
| Str255 verstr; | |
| int done; | |
| short item; | |
| hDlg = GetNewDialog(IDD_ABOUT, NULL, (WindowPtr)-1); | |
| if (!hDlg) { | |
| return; | |
| } | |
| mkstr255(verstr, np2version); | |
| 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); | |
| } | |
| // ---- | // ---- |
| static const BYTE pathsep[2] = {0x01, ':'}; | static const BYTE pathsep[2] = {0x01, ':'}; |