33 |
#include "wptNLS.h" |
#include "wptNLS.h" |
34 |
#include "wptVersion.h" |
#include "wptVersion.h" |
35 |
#include "wptFileManager.h" |
#include "wptFileManager.h" |
36 |
|
#include "wptRegistry.h" |
37 |
|
|
38 |
#define send_cmd_id(hwnd, id) \ |
#define send_cmd_id(hwnd, id) \ |
39 |
PostMessage( (hwnd), WM_COMMAND, MAKEWPARAM( (id), 0), 0 ) |
PostMessage( (hwnd), WM_COMMAND, MAKEWPARAM( (id), 0), 0 ) |
489 |
fm_send_file (lv); |
fm_send_file (lv); |
490 |
break; |
break; |
491 |
|
|
492 |
|
case ID_FILEMISC_PREFS: |
493 |
|
DialogBoxParam (glob_hinst, (LPCTSTR)IDD_FILE_PREFS, dlg, |
494 |
|
file_preferences_dlg_proc, NULL); |
495 |
|
break; |
496 |
|
|
497 |
case ID_FILEMISC_LIST: |
case ID_FILEMISC_LIST: |
498 |
case ID_FILEMISC_ENCRYPT: |
case ID_FILEMISC_ENCRYPT: |
499 |
case ID_FILEMISC_SYMENC: |
case ID_FILEMISC_SYMENC: |
539 |
|
|
540 |
|
|
541 |
BOOL CALLBACK |
BOOL CALLBACK |
542 |
|
file_preferences_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
543 |
|
{ |
544 |
|
switch (msg) { |
545 |
|
case WM_INITDIALOG: |
546 |
|
CheckDlgButton (dlg, IDC_FPREFS_PROGRESS, reg_prefs.fm.progress? BST_CHECKED : BST_UNCHECKED); |
547 |
|
SetForegroundWindow (dlg); |
548 |
|
center_window (dlg); |
549 |
|
break; |
550 |
|
|
551 |
|
case WM_COMMAND: |
552 |
|
switch (LOWORD (wparam)) { |
553 |
|
case IDOK: |
554 |
|
reg_prefs.fm.progress = IsDlgButtonChecked (dlg, IDC_FPREFS_PROGRESS)? 1 : 0; |
555 |
|
set_reg_winpt_prefs (®_prefs); |
556 |
|
EndDialog (dlg, TRUE); |
557 |
|
break; |
558 |
|
|
559 |
|
case IDCANCEL: |
560 |
|
EndDialog (dlg, FALSE); |
561 |
|
break; |
562 |
|
} |
563 |
|
break; |
564 |
|
} |
565 |
|
|
566 |
|
return FALSE; |
567 |
|
} /* file_preferences_dlg_proc */ |
568 |
|
|
569 |
|
|
570 |
|
BOOL CALLBACK |
571 |
file_secdel_confirm_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
file_secdel_confirm_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
572 |
{ |
{ |
573 |
static secdel_confirm_s * ctx; |
static secdel_confirm_s * ctx; |