|
|
| version 1.1, 2003/10/23 10:57:49 | version 1.2, 2003/10/23 19:31:58 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "strres.h" | |
| #include "resource.h" | #include "resource.h" |
| #include "dialog.h" | #include "dialog.h" |
| #include "dialogs.h" | |
| #include "pccore.h" | #include "pccore.h" |
| void AboutDialogProc(void) { | void AboutDialogProc(void) { |
| DialogPtr hDlg; | DialogPtr hDlg; |
| Str255 verstr; | |
| int done; | int done; |
| short item; | short item; |
| Str255 ver; | |
| Str255 dummy; | |
| hDlg = GetNewDialog(IDD_ABOUT, NULL, (WindowPtr)-1); | hDlg = GetNewDialog(IDD_ABOUT, NULL, (WindowPtr)-1); |
| if (!hDlg) { | if (!hDlg) { |
| return; | return; |
| } | } |
| mkstr255(ver, np2version); | mkstr255(verstr, np2version); |
| mkstr255(dummy, str_null); | SetDialogItemText(GetDlgItem(hDlg, IDD_VERSION), verstr); |
| ParamText(ver, dummy, dummy, dummy); | |
| SetDialogDefaultItem(hDlg, IDOK); | SetDialogDefaultItem(hDlg, IDOK); |
| done = 0; | done = 0; |