48 |
"Press OK to continue or Cancel") ); |
"Press OK to continue or Cancel") ); |
49 |
break; |
break; |
50 |
} |
} |
51 |
center_window( dlg ); |
center_window( dlg, NULL ); |
52 |
SetForegroundWindow( dlg ); |
SetForegroundWindow( dlg ); |
53 |
break; |
break; |
54 |
|
|
72 |
} /* card_cb_dlg_proc */ |
} /* card_cb_dlg_proc */ |
73 |
|
|
74 |
|
|
75 |
const char * |
const char* |
76 |
card_callback( int code, void * opaque ) |
card_callback (int code, void * opaque) |
77 |
{ |
{ |
78 |
struct card_cb_s * ctx = (struct card_cb_s *)opaque; |
struct card_cb_s *ctx = (struct card_cb_s *)opaque; |
79 |
|
|
80 |
if( !ctx ) |
if (!ctx) |
81 |
return NULL; |
return NULL; |
82 |
|
|
83 |
if( !ctx->init ) { |
if (!ctx->init) { |
84 |
memset( ctx->val, 0, sizeof ctx->val ); |
memset( ctx->val, 0, sizeof ctx->val ); |
85 |
ctx->code = code; |
ctx->code = code; |
86 |
DialogBoxParam( glob_hinst, (LPCTSTR)IDD_WINPT_CARD_CTRL, glob_hwnd, |
DialogBoxParam( glob_hinst, (LPCTSTR)IDD_WINPT_CARD_CTRL, glob_hwnd, |