Add WS_VSCROLL style to drop-down non-combo boxes, to add a scroll bar
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 9 Apr 2005 23:02:55 +0000 (23:02 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 9 Apr 2005 23:02:55 +0000 (23:02 +0000)
if needed. (Doesn't affect the appearance of any existing controls.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@5621 cda61777-01e9-0310-a592-d414129be87e

windows/winctrls.c

index 4227c26..f822e20 100644 (file)
@@ -670,7 +670,7 @@ void staticddl(struct ctlpos *cp, char *stext,
     r.right = rwid;
     r.bottom = COMBOHEIGHT*4;
     doctl(cp, r, "COMBOBOX",
-         WS_CHILD | WS_VISIBLE | WS_TABSTOP |
+         WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL |
          CBS_DROPDOWNLIST | CBS_HASSTRINGS, WS_EX_CLIENTEDGE, "", lid);
 
     cp->ypos += height + GAPBETWEEN;
@@ -729,7 +729,7 @@ void staticddlbig(struct ctlpos *cp, char *stext,
     r.right = cp->width;
     r.bottom = COMBOHEIGHT*4;
     doctl(cp, r, "COMBOBOX",
-         WS_CHILD | WS_VISIBLE | WS_TABSTOP |
+         WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL |
          CBS_DROPDOWNLIST | CBS_HASSTRINGS, WS_EX_CLIENTEDGE, "", lid);
     cp->ypos += COMBOHEIGHT + GAPBETWEEN;
 }