1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

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.)

[originally from svn r5621]
This commit is contained in:
Jacob Nevins 2005-04-09 23:02:55 +00:00
parent b33d9e4a44
commit 798f924906

View 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;
}