17 |
* along with WinPT; if not, write to the Free Software Foundation, |
* along with WinPT; if not, write to the Free Software Foundation, |
18 |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
19 |
*/ |
*/ |
|
|
|
20 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
21 |
#include <config.h> |
#include <config.h> |
22 |
#endif |
#endif |
42 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
43 |
SetDlgItemText (dlg, IDC_KEYPROG_CB, ""); |
SetDlgItemText (dlg, IDC_KEYPROG_CB, ""); |
44 |
SetForegroundWindow (dlg); |
SetForegroundWindow (dlg); |
45 |
SetWindowText (dlg, _("Key Generation - Progress Dialog")); |
SetWindowText (dlg, _("Key Generation - Progress Dialog")); |
46 |
center_window (dlg, NULL); |
center_window (dlg, NULL); |
47 |
dlg_hwnd = dlg; |
dlg_hwnd = dlg; |
48 |
return TRUE; |
return TRUE; |
114 |
return; |
return; |
115 |
} |
} |
116 |
|
|
117 |
if (cb_pos >= (DIM (cb)-1)) |
if (cb_pos >= (DIM (cb)-1)) { |
118 |
|
SetDlgItemText (dlg_hwnd, IDC_KEYPROG_CB, ""); |
119 |
cb_pos = 0; |
cb_pos = 0; |
120 |
|
} |
121 |
cb[cb_pos] = (char)type; |
cb[cb_pos] = (char)type; |
122 |
cb_pos++; |
cb_pos++; |
123 |
cb[cb_pos] = '\0'; |
cb[cb_pos] = '\0'; |