|
|
| version 1.11, 2005/02/09 20:11:36 | version 1.13, 2006/12/24 13:21:38 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "resource.h" | #include "resource.h" |
| #include "np2.h" | #include "np2.h" |
| #include "oemtext.h" | |
| #include "np2class.h" | #include "np2class.h" |
| #include "dialog.h" | #include "dialog.h" |
| #include "dialogs.h" | #include "dialogs.h" |
| Line 11 | Line 12 |
| static SIZE aboutsize; | static SIZE aboutsize; |
| #if !defined(SUPPORT_PC9821) | static const OEMCHAR str_np2title[] = OEMTEXT(PROJECTNAME) \ |
| static const OEMCHAR str_np2title[] = OEMTEXT("Neko Project II "); | OEMTEXT(PROJECTSUBNAME) \ |
| #else | OEMTEXT(" "); |
| static const OEMCHAR str_np2title[] = OEMTEXT("Neko Project 21 "); | |
| #endif | |
| 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%"); | 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%"); |
| Line 32 static void about_init(HWND hWnd) { | Line 31 static void about_init(HWND hWnd) { |
| #if defined(NP2VER_WIN9X) | #if defined(NP2VER_WIN9X) |
| milstr_ncat(work, NP2VER_WIN9X, NELEMENTS(work)); | milstr_ncat(work, NP2VER_WIN9X, NELEMENTS(work)); |
| #endif | #endif |
| #if defined(OSLANG_UTF8) | |
| TCHAR tchr[128]; | |
| oemtotchar(tchr, NELEMENTS(tchr), work, -1); | |
| SetDlgItemText(hWnd, IDC_NP2VER, tchr); | |
| #else | |
| SetDlgItemText(hWnd, IDC_NP2VER, work); | SetDlgItemText(hWnd, IDC_NP2VER, work); |
| #endif | |
| GetWindowRect(hWnd, &rectwindow); | GetWindowRect(hWnd, &rectwindow); |
| GetClientRect(hWnd, &rectclient); | GetClientRect(hWnd, &rectclient); |
| aboutsize.cx = rectwindow.right - rectwindow.left; | aboutsize.cx = rectwindow.right - rectwindow.left; |
| Line 56 static void about_more(HWND hWnd) { | Line 61 static void about_more(HWND hWnd) { |
| RECT rect; | RECT rect; |
| np2info(infostr, np2infostr, NELEMENTS(infostr), NULL); | np2info(infostr, np2infostr, NELEMENTS(infostr), NULL); |
| #if defined(OSLANG_UTF8) | |
| TCHAR tchr[1024]; | |
| oemtotchar(tchr, NELEMENTS(tchr), infostr, -1); | |
| SetDlgItemText(hWnd, IDC_NP2INFO, tchr); | |
| #else | |
| SetDlgItemText(hWnd, IDC_NP2INFO, infostr); | SetDlgItemText(hWnd, IDC_NP2INFO, infostr); |
| #endif | |
| EnableWindow(GetDlgItem(hWnd, IDC_MORE), FALSE); | EnableWindow(GetDlgItem(hWnd, IDC_MORE), FALSE); |
| GetWindowRect(hWnd, &rect); | GetWindowRect(hWnd, &rect); |
| np2class_move(hWnd, rect.left, rect.top, aboutsize.cx, aboutsize.cy); | np2class_move(hWnd, rect.left, rect.top, aboutsize.cx, aboutsize.cy); |