| version 1.4, 2003/10/30 18:09:06 | version 1.6, 2004/01/22 01:10:05 | 
| 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 28  static const char np2infostr[] = | Line 29  static const char np2infostr[] = | 
 | 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)); | 
 | } | } | 
 |  |  |