| version 1.4, 2003/10/30 18:09:06 | version 1.7, 2004/02/18 02:03:37 | 
| Line 5 | Line 5 | 
 | #include        "np2info.h" | #include        "np2info.h" | 
 | #include        "dialog.h" | #include        "dialog.h" | 
 | #include        "dialogs.h" | #include        "dialogs.h" | 
 |  | #include        "np2ver.h" | 
 | #include        "pccore.h" | #include        "pccore.h" | 
 |  |  | 
 |  |  | 
| Line 12  static SIZE aboutsize; | Line 13  static SIZE aboutsize; | 
 |  |  | 
 | static const char str_np2title[] = "Neko Project II  "; | static const char str_np2title[] = "Neko Project II  "; | 
 | static const char np2infostr[] =                                                                        \ | static const char np2infostr[] =                                                                        \ | 
| "CPU: !CPU !CLOCK\r\n"                                          \ | "CPU: %CPU% %CLOCK%\n"                                          \ | 
| "MEM: !MEM1\r\n"                                                        \ | "MEM: %MEM1%\n"                                                         \ | 
| "GDC: !GDC\r\n"                                                         \ | "GDC: %GDC%\n"                                                          \ | 
| "TEXT: !TEXT\r\n"                                                       \ | "TEXT: %TEXT%\n"                                                        \ | 
| "GRPH: !GRPH\r\n"                                                       \ | "GRPH: %GRPH%\n"                                                        \ | 
| "SOUND: !EXSND\r\n"                                                     \ | "SOUND: %EXSND%\n"                                                      \ | 
| "\r\n"                                                                          \ | "\n"                                                                            \ | 
| "BIOS: !BIOS\r\n"                                                       \ | "BIOS: %BIOS%\n"                                                        \ | 
| "RHYTHM: !RHYTHM\r\n"                                           \ | "RHYTHM: %RHYTHM%\n"                                            \ | 
| "\r\n"                                                                          \ | "\n"                                                                            \ | 
| "SCREEN: !DISP"; | "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; | 
 |  |  | 
 | milstr_ncpy(work, str_np2title, sizeof(work)); | milstr_ncpy(work, str_np2title, sizeof(work)); | 
 | milstr_ncat(work, np2version, sizeof(work)); | milstr_ncat(work, np2version, sizeof(work)); | 
 |  | #if defined(NP2VER_WIN9X) | 
 |  | milstr_ncat(work, NP2VER_WIN9X, sizeof(work)); | 
 |  | #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 45  static void about_init(HWND hWnd) { | Line 51  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 54  static void about_more(HWND hWnd) { | Line 62  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); |