| version 1.3, 2003/10/30 12:45:38 | version 1.5, 2003/11/07 20:07:58 | 
| 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 34  static void about_init(HWND hWnd) { | Line 35  static void about_init(HWND hWnd) { | 
 |  |  | 
 | 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, &rect); | 
 | aboutsize.cx = rect.right - rect.left; | aboutsize.cx = rect.right - rect.left; | 
| Line 44  static void about_init(HWND hWnd) { | Line 48  static void about_init(HWND hWnd) { | 
 | GetClientRect(GetParent(hWnd), &parent); | GetClientRect(GetParent(hWnd), &parent); | 
 | 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 - 84) / 2), | pt.y + ((parent.bottom - parent.top - aboutsize.cy) / 2), | 
 | aboutsize.cx, 84); | aboutsize.cx, 84); | 
 | SetFocus(GetDlgItem(hWnd, IDOK)); | SetFocus(GetDlgItem(hWnd, IDOK)); | 
 | } | } |