Added "Remove Ignored packets" to the win32 dialogs.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 27 Jan 2010 11:45:16 +0000 (11:45 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 27 Jan 2010 11:45:16 +0000 (11:45 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31695 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/file_dlg_win32.c
gtk/file_dlg_win32.h
image/file_dlg_win32.rc

index a210dd0497abafe6c3db015fedbe32d5150cc86d..b5b0cb0104f11af17e32b055009cf5e3e29cf4e7 100644 (file)
@@ -1489,6 +1489,7 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
     gboolean filtered_active = FALSE;
     TCHAR    static_val[100];
     gint     selected_num;
+    guint32  ignored_cnt = 0, displayed_ignored_cnt = 0;
 
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_DISPLAYED_BTN);
     if (SendMessage(cur_ctrl, BM_GETCHECK, 0, 0) == BST_CHECKED)
@@ -1497,24 +1498,40 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
     /* RANGE_SELECT_ALL */
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_ALL_PKTS_CAP);
     EnableWindow(cur_ctrl, !filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), cfile.count);
+    if (range->remove_ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), cfile.count - range->ignored_cnt);
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), cfile.count);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_ALL_PKTS_DISP);
     EnableWindow(cur_ctrl, filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_cnt);
+    if (range->remove_ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_cnt - range->displayed_ignored_cnt);
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_cnt);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     /* RANGE_SELECT_CURR */
     selected_num = (cfile.current_frame) ? cfile.current_frame->num : 0;
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_SEL_PKT_CAP);
     EnableWindow(cur_ctrl, selected_num && !filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), selected_num ? 1 : 0);
+    if (range->remove_ignored && cfile.current_frame && cfile.current_frame->flags.ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("0"));
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), selected_num ? 1 : 0);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_SEL_PKT_DISP);
     EnableWindow(cur_ctrl, selected_num && filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), selected_num ? 1 : 0);
+    if (range->remove_ignored && cfile.current_frame && cfile.current_frame->flags.ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("0"));
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), selected_num ? 1 : 0);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     /* RANGE_SELECT_MARKED */
@@ -1523,12 +1540,20 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
 
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_MARKED_CAP);
     EnableWindow(cur_ctrl, cfile.marked_count && !filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), cfile.marked_count);
+    if (range->remove_ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), cfile.marked_count - range->ignored_marked_cnt);
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), cfile.marked_count);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_MARKED_DISP);
     EnableWindow(cur_ctrl, cfile.marked_count && filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_marked_cnt);
+    if (range->remove_ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_marked_cnt - range->displayed_ignored_marked_cnt);
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_marked_cnt);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     /* RANGE_SELECT_MARKED_RANGE */
@@ -1537,23 +1562,78 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
 
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_FIRST_LAST_CAP);
     EnableWindow(cur_ctrl, range->mark_range_cnt && !filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), range->mark_range_cnt);
+    if (range->remove_ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->mark_range_cnt - range->ignored_mark_range_cnt);
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->mark_range_cnt);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_FIRST_LAST_DISP);
     EnableWindow(cur_ctrl, range->displayed_mark_range_cnt && filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_mark_range_cnt);
+    if (range->remove_ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_mark_range_cnt - range->displayed_ignored_mark_range_cnt);
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_mark_range_cnt);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     /* RANGE_SELECT_USER */
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_RANGE_CAP);
     EnableWindow(cur_ctrl, !filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), range->user_range_cnt);
+    if (range->remove_ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->user_range_cnt - range->ignored_user_range_cnt);
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->user_range_cnt);
+    }
     SetWindowText(cur_ctrl, static_val);
 
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_RANGE_DISP);
     EnableWindow(cur_ctrl, filtered_active);
-    _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_user_range_cnt);
+    if (range->remove_ignored) {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_user_range_cnt - range->displayed_ignored_user_range_cnt);
+    } else {
+        _snwprintf(static_val, sizeof(static_val), _T("%u"), range->displayed_user_range_cnt);
+    }
+    SetWindowText(cur_ctrl, static_val);
+
+    /* RANGE_REMOVE_IGNORED_PACKETS */
+    switch(range->process) {
+        case(range_process_all):
+            ignored_cnt = range->ignored_cnt;
+            displayed_ignored_cnt = range->displayed_ignored_cnt;
+            break;
+        case(range_process_selected):
+            ignored_cnt = (cfile.current_frame && cfile.current_frame->flags.ignored) ? 1 : 0;
+            displayed_ignored_cnt = ignored_cnt;
+            break;
+        case(range_process_marked):
+            ignored_cnt = range->ignored_marked_cnt;
+            displayed_ignored_cnt = range->displayed_ignored_marked_cnt;
+            break;
+        case(range_process_marked_range):
+            ignored_cnt = range->ignored_mark_range_cnt;
+            displayed_ignored_cnt = range->displayed_ignored_mark_range_cnt;
+            break;
+        case(range_process_user_range):
+            ignored_cnt = range->ignored_user_range_cnt;
+            displayed_ignored_cnt = range->displayed_ignored_user_range_cnt;
+            break;
+        default:
+            g_assert_not_reached();
+    }
+
+    cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_REMOVE_IGN_CB);
+    EnableWindow(cur_ctrl, ignored_cnt);
+
+    cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_IGNORED_CAP);
+    EnableWindow(cur_ctrl, !filtered_active);
+    _snwprintf(static_val, sizeof(static_val), _T("%u"), ignored_cnt);
+    SetWindowText(cur_ctrl, static_val);
+
+    cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_IGNORED_DISP);
+    EnableWindow(cur_ctrl, filtered_active);
+    _snwprintf(static_val, sizeof(static_val), _T("%u"), displayed_ignored_cnt);
     SetWindowText(cur_ctrl, static_val);
 }
 
@@ -1650,6 +1730,14 @@ range_handle_wm_command(HWND dlg_hwnd, HWND ctrl, WPARAM w_param, packet_range_t
             packet_range_convert_str(range, utf_16to8(range_text));
             range_update_dynamics(dlg_hwnd, range);
             break;
+        case (BN_CLICKED << 16) | EWFD_REMOVE_IGN_CB:
+            if (SendMessage(ctrl, BM_GETCHECK, 0, 0) == BST_CHECKED) {
+                range->remove_ignored = TRUE;
+            } else {
+                range->remove_ignored = FALSE;
+            }
+            range_update_dynamics(dlg_hwnd, range);
+            break;
     }
 }
 
index 3677a71b36d17475d32f399fe3bccce0ea83fa91..52e56fa16cadaf9ab225bc0d2e2671144696d77b 100644 (file)
@@ -127,18 +127,21 @@ void file_set_save_marked_sensitive();
 #define EWFD_FIRST_LAST_BTN  1005
 #define EWFD_RANGE_BTN       1006
 #define EWFD_RANGE_EDIT      1007
+#define EWFD_REMOVE_IGN_CB   1008
 
 #define EWFD_ALL_PKTS_CAP    1009
 #define EWFD_SEL_PKT_CAP     1010
 #define EWFD_MARKED_CAP      1011
 #define EWFD_FIRST_LAST_CAP  1012
 #define EWFD_RANGE_CAP       1013
-
-#define EWFD_ALL_PKTS_DISP   1014
-#define EWFD_SEL_PKT_DISP    1015
-#define EWFD_MARKED_DISP     1016
-#define EWFD_FIRST_LAST_DISP 1017
-#define EWFD_RANGE_DISP      1018
+#define EWFD_IGNORED_CAP     1014
+
+#define EWFD_ALL_PKTS_DISP   1015
+#define EWFD_SEL_PKT_DISP    1016
+#define EWFD_MARKED_DISP     1017
+#define EWFD_FIRST_LAST_DISP 1018
+#define EWFD_RANGE_DISP      1019
+#define EWFD_IGNORED_DISP    1020
 
 /* Export raw dialog defines. */
 #define EWFD_EXPORTRAW_ST 1000
index 433c700b3efcb6d2d1c50ce56997566119388641..a2ec80c6ccb3ec63ce49c5286bac9fbfdaec2341 100644 (file)
@@ -29,33 +29,36 @@ FONT 8, "MS Shell Dlg"
     LTEXT "-", EWFD_PTX_ELAPSED, 211, 79, 150, 8
 }
 
-WIRESHARK_SAVEFILENAME_TEMPLATE DIALOG 0, 0, 368, 116
+WIRESHARK_SAVEFILENAME_TEMPLATE DIALOG 0, 0, 368, 128
 STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | DS_3DLOOK | DS_CONTROL
 FONT 8, "MS Shell Dlg"
 {
-    GROUPBOX "Packet Range", -1, 5, 21, 210, 90
+    GROUPBOX "Packet Range", -1, 5, 21, 220, 102
 
-    CONTROL  "Captured", EWFD_CAPTURED_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 110, 32, 45, 10
-    CONTROL  "Displayed", EWFD_DISPLAYED_BTN, "Button", BS_AUTORADIOBUTTON, 160,  32, 47, 10
+    CONTROL  "Captured", EWFD_CAPTURED_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 120, 32, 45, 10
+    CONTROL  "Displayed", EWFD_DISPLAYED_BTN, "Button", BS_AUTORADIOBUTTON, 170,  32, 47, 10
 
     CONTROL  "All packets", EWFD_ALL_PKTS_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 16, 44, 51, 10
     CONTROL  "Selected packet", EWFD_SEL_PKT_BTN, "Button", BS_AUTORADIOBUTTON,  16, 56, 68, 10
     CONTROL  "Marked packets", EWFD_MARKED_BTN, "Button", BS_AUTORADIOBUTTON,  16, 68, 67, 10
     CONTROL  "First to last marked", EWFD_FIRST_LAST_BTN, "Button",  BS_AUTORADIOBUTTON, 16, 80, 75, 10
     CONTROL  "Range:", EWFD_RANGE_BTN, "Button",  BS_AUTORADIOBUTTON, 16, 92, 35, 10
-    EDITTEXT EWFD_RANGE_EDIT, 53, 91, 30, 12, ES_AUTOHSCROLL
-
-    LTEXT "0", EWFD_ALL_PKTS_CAP, 110, 45, 39, 8, SS_RIGHT
-    LTEXT "0", EWFD_SEL_PKT_CAP, 110, 57, 39, 8, SS_RIGHT
-    LTEXT "0", EWFD_MARKED_CAP, 110, 69, 39, 8, SS_RIGHT
-    LTEXT "0", EWFD_FIRST_LAST_CAP, 110, 81, 39, 8, SS_RIGHT
-    LTEXT "0", EWFD_RANGE_CAP, 110, 93, 39, 8, SS_RIGHT
-
-    LTEXT "0", EWFD_ALL_PKTS_DISP, 160, 45, 41, 8, SS_RIGHT
-    LTEXT "0", EWFD_SEL_PKT_DISP, 160, 57, 41, 8, SS_RIGHT
-    LTEXT "0", EWFD_MARKED_DISP, 160, 69, 41, 8, SS_RIGHT
-    LTEXT "0", EWFD_FIRST_LAST_DISP, 160, 81, 41, 8, SS_RIGHT
-    LTEXT "0", EWFD_RANGE_DISP, 160, 93, 41, 8, SS_RIGHT
+    EDITTEXT EWFD_RANGE_EDIT, 53, 91, 50, 12, ES_AUTOHSCROLL
+    CONTROL  "Remove Ignored packets", EWFD_REMOVE_IGN_CB, "Button",  BS_AUTOCHECKBOX | WS_TABSTOP, 16, 104, 100, 10
+
+    LTEXT "0", EWFD_ALL_PKTS_CAP, 120, 45, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_SEL_PKT_CAP, 120, 57, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_MARKED_CAP, 120, 69, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_FIRST_LAST_CAP, 120, 81, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_RANGE_CAP, 120, 93, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_IGNORED_CAP, 120, 105, 39, 8, SS_RIGHT
+
+    LTEXT "0", EWFD_ALL_PKTS_DISP, 170, 45, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_SEL_PKT_DISP, 170, 57, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_MARKED_DISP, 170, 69, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_FIRST_LAST_DISP, 170, 81, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_RANGE_DISP, 170, 93, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_IGNORED_DISP, 170, 105, 41, 8, SS_RIGHT
 }
 
 WIRESHARK_MERGEFILENAME_TEMPLATE DIALOG 0, 0, 368, 94
@@ -85,43 +88,46 @@ FONT 8, "MS Shell Dlg"
     LTEXT "-", EWFD_PTX_ELAPSED, 211, 79, 150, 8
 }
 
-WIRESHARK_EXPORTFILENAME_TEMPLATE DIALOG 0, 0, 319, 97
+WIRESHARK_EXPORTFILENAME_TEMPLATE DIALOG 0, 0, 319, 109
 STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | DS_3DLOOK | DS_CONTROL
 FONT 8, "MS Shell Dlg"
 {
     // Provide hints for dialog layout and size
-    LTEXT    "", stc32, 1, 1, 250, 0
+    LTEXT    "", stc32, 1, 1, 260, 0
 
-    GROUPBOX "Packet Range", -1, 5, 2, 210, 90
+    GROUPBOX "Packet Range", -1, 5, 2, 220, 102
 
-    CONTROL  "Captured", EWFD_CAPTURED_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 110, 13, 45, 10
-    CONTROL  "Displayed", EWFD_DISPLAYED_BTN, "Button", BS_AUTORADIOBUTTON, 160,  13, 47, 10
+    CONTROL  "Captured", EWFD_CAPTURED_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 120, 13, 45, 10
+    CONTROL  "Displayed", EWFD_DISPLAYED_BTN, "Button", BS_AUTORADIOBUTTON, 170,  13, 47, 10
 
     CONTROL  "All packets", EWFD_ALL_PKTS_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 16, 25, 51, 10
     CONTROL  "Selected packet", EWFD_SEL_PKT_BTN, "Button", BS_AUTORADIOBUTTON,  16, 37, 68, 10
     CONTROL  "Marked packets", EWFD_MARKED_BTN, "Button", BS_AUTORADIOBUTTON,  16, 49, 67, 10
     CONTROL  "First to last marked", EWFD_FIRST_LAST_BTN, "Button",  BS_AUTORADIOBUTTON, 16, 61, 75, 10
     CONTROL  "Range:", EWFD_RANGE_BTN, "Button",  BS_AUTORADIOBUTTON, 16, 73, 35, 10
-    EDITTEXT EWFD_RANGE_EDIT, 53, 72, 30, 12, ES_AUTOHSCROLL
-
-    LTEXT "0", EWFD_ALL_PKTS_CAP,   110, 26, 39, 8, SS_RIGHT
-    LTEXT "0", EWFD_SEL_PKT_CAP,    110, 38, 39, 8, SS_RIGHT
-    LTEXT "0", EWFD_MARKED_CAP,     110, 50, 39, 8, SS_RIGHT
-    LTEXT "0", EWFD_FIRST_LAST_CAP, 110, 62, 39, 8, SS_RIGHT
-    LTEXT "0", EWFD_RANGE_CAP,      110, 74, 39, 8, SS_RIGHT
-
-    LTEXT "0", EWFD_ALL_PKTS_DISP,   160, 26, 41, 8, SS_RIGHT
-    LTEXT "0", EWFD_SEL_PKT_DISP,    160, 38, 41, 8, SS_RIGHT
-    LTEXT "0", EWFD_MARKED_DISP,     160, 50, 41, 8, SS_RIGHT
-    LTEXT "0", EWFD_FIRST_LAST_DISP, 160, 62, 41, 8, SS_RIGHT
-    LTEXT "0", EWFD_RANGE_DISP,      160, 74, 41, 8, SS_RIGHT
-
-    GROUPBOX "Packet Format", EWFD_PKT_FORMAT_GB, 224, 2, 119, 90
-    CONTROL  "Packet summary line", EWFD_PKT_SUMMARY_CB, "Button",  BS_AUTOCHECKBOX | WS_TABSTOP, 235, 15, 84, 10
-    CONTROL  "Packet details:", EWFD_PKT_DETAIL_CB, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 235, 27, 95, 10
-    COMBOBOX EWFD_PKT_DETAIL_COMBO, 247, 39, 74, 45, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
-    CONTROL  "Packet Bytes", EWFD_PKT_BYTES_CB, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 235, 56, 80, 10
-    CONTROL  "Each packet on a new page", EWFD_PKT_NEW_PAGE_CB, "Button",  BS_AUTOCHECKBOX | WS_TABSTOP, 235, 70, 106, 10
+    EDITTEXT EWFD_RANGE_EDIT, 53, 72, 50, 12, ES_AUTOHSCROLL
+    CONTROL  "Remove Ignored packets", EWFD_REMOVE_IGN_CB, "Button",  BS_AUTOCHECKBOX | WS_TABSTOP, 16, 85, 100, 10
+
+    LTEXT "0", EWFD_ALL_PKTS_CAP,   120, 26, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_SEL_PKT_CAP,    120, 38, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_MARKED_CAP,     120, 50, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_FIRST_LAST_CAP, 120, 62, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_RANGE_CAP,      120, 74, 39, 8, SS_RIGHT
+    LTEXT "0", EWFD_IGNORED_CAP,    120, 86, 39, 8, SS_RIGHT
+
+    LTEXT "0", EWFD_ALL_PKTS_DISP,   170, 26, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_SEL_PKT_DISP,    170, 38, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_MARKED_DISP,     170, 50, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_FIRST_LAST_DISP, 170, 62, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_RANGE_DISP,      170, 74, 41, 8, SS_RIGHT
+    LTEXT "0", EWFD_IGNORED_DISP,    170, 86, 41, 8, SS_RIGHT
+
+    GROUPBOX "Packet Format", EWFD_PKT_FORMAT_GB, 234, 2, 119, 102
+    CONTROL  "Packet summary line", EWFD_PKT_SUMMARY_CB, "Button",  BS_AUTOCHECKBOX | WS_TABSTOP, 245, 15, 84, 10
+    CONTROL  "Packet details:", EWFD_PKT_DETAIL_CB, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 245, 27, 95, 10
+    COMBOBOX EWFD_PKT_DETAIL_COMBO, 257, 39, 74, 45, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
+    CONTROL  "Packet Bytes", EWFD_PKT_BYTES_CB, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 245, 56, 80, 10
+    CONTROL  "Each packet on a new page", EWFD_PKT_NEW_PAGE_CB, "Button",  BS_AUTOCHECKBOX | WS_TABSTOP, 245, 70, 106, 10
 
 }