1 |
/* wptSignEncDlg.cpp - Sign & encrypt dialog |
/* wptSignEncDlg.cpp - Sign & encrypt dialog |
2 |
* Copyright (C) 2000-2004 Timo Schulz |
* Copyright (C) 2000-2005 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
40 |
|
|
41 |
|
|
42 |
BOOL CALLBACK |
BOOL CALLBACK |
43 |
clip_signenc_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam ) |
clip_signenc_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
44 |
{ |
{ |
45 |
static listview_ctrl_t lv = NULL; |
static listview_ctrl_t lv = NULL; |
46 |
static keylist_t list = NULL; |
static keylist_t list = NULL; |
56 |
|
|
57 |
switch( msg ) { |
switch( msg ) { |
58 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
59 |
|
enable = 0; |
60 |
#ifndef LANG_DE |
#ifndef LANG_DE |
61 |
SetWindowText( dlg, _("Sign & Encrypt") ); |
SetWindowText( dlg, _("Sign & Encrypt") ); |
62 |
#endif |
#endif |
66 |
lv = keylist_load( GetDlgItem( dlg, IDC_SIGNENC_KEYLIST ), |
lv = keylist_load( GetDlgItem( dlg, IDC_SIGNENC_KEYLIST ), |
67 |
kc, NULL, kmode, GPGME_ATTR_USERID ); |
kc, NULL, kmode, GPGME_ATTR_USERID ); |
68 |
seclist_init( dlg, IDC_SIGNENC_SECLIST, KEYLIST_FLAG_SHORT, &list ); |
seclist_init( dlg, IDC_SIGNENC_SECLIST, KEYLIST_FLAG_SHORT, &list ); |
69 |
center_window( dlg ); |
center_window (dlg); |
70 |
set_active_window( dlg ); |
set_active_window (dlg); |
71 |
EnableWindow( GetDlgItem( dlg, IDC_SIGNENC_SECLIST ), FALSE ); |
EnableWindow (GetDlgItem (dlg, IDC_SIGNENC_SECLIST), FALSE); |
72 |
SetDlgItemText (dlg, IDC_SIGNENC_SELKEY, _("Select key for signing")); |
SetDlgItemText (dlg, IDC_SIGNENC_SELKEY, _("Select key for signing")); |
73 |
SetDlgItemText (dlg, IDC_SIGNENC_SECLISTINF, _("Signing key:")); |
SetDlgItemText (dlg, IDC_SIGNENC_SECLISTINF, _("Signing key:")); |
74 |
SetForegroundWindow( dlg ); |
SetForegroundWindow (dlg); |
75 |
return TRUE; |
return TRUE; |
76 |
|
|
77 |
case WM_DESTROY: |
case WM_DESTROY: |