Make sure the export dialog is large enough. Fix a Unicode issue while
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 28 Mar 2006 23:06:11 +0000 (23:06 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 28 Mar 2006 23:06:11 +0000 (23:06 +0000)
we're at it.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17754 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/win32-file-dlg.c
image/win32-file-dlg.rc

index 6e612749a0733812b3fe5f99b2ee77aca1f47b49..d841789ceb602fd785cec2b6e2d62dc0856e259a 100644 (file)
@@ -652,9 +652,9 @@ format_handle_wm_initdialog(HWND dlg_hwnd, print_args_t *args) {
 
     /* Set the "Packet details" combo */
     cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_PKT_DETAIL_COMBO);
-    SendMessage(cur_ctrl, CB_ADDSTRING, 0, (LPARAM) (LPCTSTR) "All collapsed");
-    SendMessage(cur_ctrl, CB_ADDSTRING, 0, (LPARAM) (LPCTSTR) "As displayed");
-    SendMessage(cur_ctrl, CB_ADDSTRING, 0, (LPARAM) (LPCTSTR) "All expanded");
+    SendMessage(cur_ctrl, CB_ADDSTRING, 0, _T("All collapsed"));
+    SendMessage(cur_ctrl, CB_ADDSTRING, 0, _T("As displayed"));
+    SendMessage(cur_ctrl, CB_ADDSTRING, 0, _T("All expanded"));
 
     switch (args->print_dissections) {
        case print_dissections_none:
index 5d1109e5e474b27dc0775b1beb518294492df6c8..277b1c2db522790e3ad35d8713f1cc82d3b9df3b 100644 (file)
@@ -88,13 +88,13 @@ FONT 8, "MS Shell Dlg"
     LTEXT "-", EWFD_PTX_ELAPSED, 211, 79, 150, 8
 }
 
-// XXX - The width value appears to have no effect, at least on Windows XP.
-// yes, this seems to be a bug, see:
-// http://softwareforums.intel.com/ids/board/message?board.id=5&message.id=7382
-ETHEREAL_EXPORTFILENAME_TEMPLATE DIALOG 0, 0, 5000, 97
+ETHEREAL_EXPORTFILENAME_TEMPLATE DIALOG 0, 0, 319, 97
 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
+
     GROUPBOX "Packet Range", -1, 5, 2, 210, 90
 
     CONTROL  "Captured", EWFD_CAPTURED_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 110, 13, 45, 10