|
|
| version 1.7, 2004/02/18 02:03:37 | version 1.11, 2005/02/09 20:11:36 |
|---|---|
| Line 2 | Line 2 |
| #include "resource.h" | #include "resource.h" |
| #include "np2.h" | #include "np2.h" |
| #include "np2class.h" | #include "np2class.h" |
| #include "np2info.h" | |
| #include "dialog.h" | #include "dialog.h" |
| #include "dialogs.h" | #include "dialogs.h" |
| #include "np2ver.h" | #include "np2ver.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "np2info.h" | |
| static SIZE aboutsize; | static SIZE aboutsize; |
| static const char str_np2title[] = "Neko Project II "; | #if !defined(SUPPORT_PC9821) |
| static const char np2infostr[] = \ | static const OEMCHAR str_np2title[] = OEMTEXT("Neko Project II "); |
| "CPU: %CPU% %CLOCK%\n" \ | #else |
| "MEM: %MEM1%\n" \ | static const OEMCHAR str_np2title[] = OEMTEXT("Neko Project 21 "); |
| "GDC: %GDC%\n" \ | #endif |
| "TEXT: %TEXT%\n" \ | static const OEMCHAR np2infostr[] = OEMTEXT("CPU: %CPU% %CLOCK%\nMEM: %MEM1%\nGDC: %GDC%\n %GDC2%\nTEXT: %TEXT%\nGRPH: %GRPH%\nSOUND: %EXSND%\n\nBIOS: %BIOS%\nRHYTHM: %RHYTHM%\n\nSCREEN: %DISP%"); |
| "GRPH: %GRPH%\n" \ | |
| "SOUND: %EXSND%\n" \ | |
| "\n" \ | |
| "BIOS: %BIOS%\n" \ | |
| "RHYTHM: %RHYTHM%\n" \ | |
| "\n" \ | |
| "SCREEN: %DISP%"; | |
| static void about_init(HWND hWnd) { | static void about_init(HWND hWnd) { |
| char work[128]; | OEMCHAR work[128]; |
| RECT rectwindow; | RECT rectwindow; |
| RECT rectclient; | RECT rectclient; |
| POINT pt; | POINT pt; |
| RECT parent; | RECT parent; |
| milstr_ncpy(work, str_np2title, sizeof(work)); | milstr_ncpy(work, str_np2title, NELEMENTS(work)); |
| milstr_ncat(work, np2version, sizeof(work)); | milstr_ncat(work, np2version, NELEMENTS(work)); |
| #if defined(NP2VER_WIN9X) | #if defined(NP2VER_WIN9X) |
| milstr_ncat(work, NP2VER_WIN9X, sizeof(work)); | milstr_ncat(work, NP2VER_WIN9X, NELEMENTS(work)); |
| #endif | #endif |
| SetDlgItemText(hWnd, IDC_NP2VER, work); | SetDlgItemText(hWnd, IDC_NP2VER, work); |
| GetWindowRect(hWnd, &rectwindow); | GetWindowRect(hWnd, &rectwindow); |
| Line 59 static void about_init(HWND hWnd) { | Line 52 static void about_init(HWND hWnd) { |
| static void about_more(HWND hWnd) { | static void about_more(HWND hWnd) { |
| char infostr[1024]; | OEMCHAR infostr[1024]; |
| RECT rect; | RECT rect; |
| np2info(infostr, np2infostr, sizeof(infostr), NULL); | np2info(infostr, np2infostr, NELEMENTS(infostr), NULL); |
| SetDlgItemText(hWnd, IDC_NP2INFO, infostr); | SetDlgItemText(hWnd, IDC_NP2INFO, infostr); |
| EnableWindow(GetDlgItem(hWnd, IDC_MORE), FALSE); | EnableWindow(GetDlgItem(hWnd, IDC_MORE), FALSE); |
| GetWindowRect(hWnd, &rect); | GetWindowRect(hWnd, &rect); |