| version 1.5, 2003/11/07 20:07:58 | version 1.10, 2004/05/21 08:40:28 | 
| 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; | 
 |  |  | 
 |  | #if !defined(SUPPORT_PC9821) | 
 | static const char str_np2title[] = "Neko Project II  "; | static const char str_np2title[] = "Neko Project II  "; | 
| static const char np2infostr[] =                                                                        \ | #else | 
| "CPU: !CPU !CLOCK\r\n"                                          \ | static const char str_np2title[] = "Neko Project 21  "; | 
| "MEM: !MEM1\r\n"                                                        \ | #endif | 
| "GDC: !GDC\r\n"                                                         \ | static const char np2infostr[] =                                                                \ | 
| "TEXT: !TEXT\r\n"                                                       \ | "CPU: %CPU% %CLOCK%\n"                                  \ | 
| "GRPH: !GRPH\r\n"                                                       \ | "MEM: %MEM1%\n"                                                 \ | 
| "SOUND: !EXSND\r\n"                                                     \ | "GDC: %GDC%\n"                                                  \ | 
| "\r\n"                                                                          \ | "     %GDC2%\n"                                                 \ | 
| "BIOS: !BIOS\r\n"                                                       \ | "TEXT: %TEXT%\n"                                                \ | 
| "RHYTHM: !RHYTHM\r\n"                                           \ | "GRPH: %GRPH%\n"                                                \ | 
| "\r\n"                                                                          \ | "SOUND: %EXSND%\n"                                              \ | 
| "SCREEN: !DISP"; | "\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]; | char    work[128]; | 
| RECT    rect; | RECT    rectwindow; | 
|  | RECT    rectclient; | 
 | POINT   pt; | POINT   pt; | 
 | RECT    parent; | RECT    parent; | 
 |  |  | 
| Line 39  static void about_init(HWND hWnd) { | Line 45  static void about_init(HWND hWnd) { | 
 | milstr_ncat(work, NP2VER_WIN9X, sizeof(work)); | milstr_ncat(work, NP2VER_WIN9X, sizeof(work)); | 
 | #endif | #endif | 
 | SetDlgItemText(hWnd, IDC_NP2VER, work); | SetDlgItemText(hWnd, IDC_NP2VER, work); | 
| GetWindowRect(hWnd, &rect); | GetWindowRect(hWnd, &rectwindow); | 
| aboutsize.cx = rect.right - rect.left; | GetClientRect(hWnd, &rectclient); | 
| aboutsize.cy = rect.bottom - rect.top; | aboutsize.cx = rectwindow.right - rectwindow.left; | 
|  | aboutsize.cy = rectwindow.bottom - rectwindow.top; | 
 | pt.x = 0; | pt.x = 0; | 
 | pt.y = 0; | pt.y = 0; | 
 | ClientToScreen(GetParent(hWnd), &pt); | ClientToScreen(GetParent(hWnd), &pt); | 
| Line 49  static void about_init(HWND hWnd) { | Line 56  static void about_init(HWND hWnd) { | 
 | np2class_move(hWnd, | np2class_move(hWnd, | 
 | pt.x + ((parent.right - parent.left - aboutsize.cx) / 2), | pt.x + ((parent.right - parent.left - aboutsize.cx) / 2), | 
 | pt.y + ((parent.bottom - parent.top - aboutsize.cy) / 2), | pt.y + ((parent.bottom - parent.top - aboutsize.cy) / 2), | 
| aboutsize.cx, 84); | aboutsize.cx, | 
|  | aboutsize.cy + 60 - (rectclient.bottom - rectclient.top)); | 
|  |  | 
 | SetFocus(GetDlgItem(hWnd, IDOK)); | SetFocus(GetDlgItem(hWnd, IDOK)); | 
 | } | } | 
 |  |  | 
| Line 58  static void about_more(HWND hWnd) { | Line 67  static void about_more(HWND hWnd) { | 
 | char    infostr[1024]; | char    infostr[1024]; | 
 | RECT    rect; | RECT    rect; | 
 |  |  | 
| np2info(infostr, np2infostr, sizeof(infostr)); | np2info(infostr, np2infostr, sizeof(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); |