From: simon Date: Mon, 22 Jan 2001 13:15:52 +0000 (+0000) Subject: Add a title to the Tunnels panel X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/e6ace45045fd8f8adbc04b40a297425a33c2e86a?ds=sidebyside Add a title to the Tunnels panel git-svn-id: svn://svn.tartarus.org/sgt/putty@880 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windlg.c b/windlg.c index f36da4b1..015ad143 100644 --- a/windlg.c +++ b/windlg.c @@ -402,6 +402,7 @@ enum { IDCX_ABOUT = IDC_ABOUT, IDCX_TVSTATIC, IDCX_TREEVIEW, controlstartvalue, translationpanelend, tunnelspanelstart, + IDC_TITLE_TUNNELS, IDC_BOX_TUNNELS, IDC_BOXT_TUNNELS, IDC_X11_FORWARD, IDC_X11_DISPSTATIC, @@ -1080,18 +1081,20 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg, } /* The Tunnels panel. Accelerators used: [acgo] ex */ { - struct ctlpos tp; - ctlposinit(&tp, hwnd, 80, 3, 13); + struct ctlpos cp; + ctlposinit(&cp, hwnd, 80, 3, 13); if (dlgtype == 0) { - beginbox(&tp, "X11 forwarding options", - IDC_BOX_TUNNELS, IDC_BOXT_TUNNELS); - checkbox(&tp, "&Enable X11 forwarding", - IDC_X11_FORWARD); - multiedit(&tp, "&X display location", IDC_X11_DISPSTATIC, - IDC_X11_DISPLAY, 50, NULL); - endbox(&tp); - - treeview_insert(&tvfaff, 2, "Tunnels"); + bartitle(&cp, "Options controlling SSH tunnelling", + IDC_TITLE_TUNNELS); + beginbox(&cp, "X11 forwarding options", + IDC_BOX_TUNNELS, IDC_BOXT_TUNNELS); + checkbox(&cp, "&Enable X11 forwarding", + IDC_X11_FORWARD); + multiedit(&cp, "&X display location", IDC_X11_DISPSTATIC, + IDC_X11_DISPLAY, 50, NULL); + endbox(&cp); + + treeview_insert(&tvfaff, 2, "Tunnels"); } }