From: jacob Date: Sat, 9 Apr 2005 23:02:55 +0000 (+0000) Subject: Add WS_VSCROLL style to drop-down non-combo boxes, to add a scroll bar X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/2c72609a1654819cee41fa4c202c15a6577461ee Add WS_VSCROLL style to drop-down non-combo boxes, to add a scroll bar 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 --- diff --git a/windows/winctrls.c b/windows/winctrls.c index 4227c26f..f822e204 100644 --- a/windows/winctrls.c +++ b/windows/winctrls.c @@ -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; }