18 |
* along with WinPT; if not, write to the Free Software Foundation, |
* along with WinPT; if not, write to the Free Software Foundation, |
19 |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
20 |
*/ |
*/ |
|
|
|
21 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
22 |
#include <config.h> |
#include <config.h> |
23 |
#endif |
#endif |
137 |
|
|
138 |
switch( msg ) { |
switch( msg ) { |
139 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
140 |
SetWindowText( dlg, _("Encryption") ); |
SetWindowText (dlg, _("Encryption")); |
141 |
|
SetDlgItemText (dlg, IDC_ENCRYPT_FNDCMD, _("&Find")); |
142 |
|
SetDlgItemText (dlg, IDCANCEL, _("&Cancel")); |
143 |
kc = keycache_get_ctx( KEYCACHE_PUB ); |
kc = keycache_get_ctx( KEYCACHE_PUB ); |
144 |
if( !kc ) |
if( !kc ) |
145 |
BUG( NULL ); |
BUG( NULL ); |
164 |
notify = (NMHDR *)lparam; |
notify = (NMHDR *)lparam; |
165 |
if (notify && notify->code == NM_DBLCLK && |
if (notify && notify->code == NM_DBLCLK && |
166 |
notify->idFrom == IDC_ENCRYPT_KEYLIST) |
notify->idFrom == IDC_ENCRYPT_KEYLIST) |
167 |
PostMessage( dlg, WM_COMMAND, MAKEWPARAM( IDOK, 0 ), 0); |
PostMessage( dlg, WM_COMMAND, MAKEWPARAM( IDOK, 0 ), 0 ); |
168 |
if (notify && notify->code == LVN_COLUMNCLICK && |
if (notify && notify->code == LVN_COLUMNCLICK && |
169 |
notify->idFrom == IDC_ENCRYPT_KEYLIST ) { |
notify->idFrom == IDC_ENCRYPT_KEYLIST ) { |
170 |
NMLISTVIEW *p = (LPNMLISTVIEW) lparam; |
NMLISTVIEW *p = (LPNMLISTVIEW) lparam; |