]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add WS_VSCROLL style to drop-down non-combo boxes, to add a scroll bar
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sat, 9 Apr 2005 23:02:55 +0000 (23:02 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sat, 9 Apr 2005 23:02:55 +0000 (23:02 +0000)
if needed. (Doesn't affect the appearance of any existing controls.)

[originally from svn r5621]

windows/winctrls.c

index 4227c26fc200163252c992d1a655b3b28bc4e6eb..f822e204d9f1f2b8f3d37816e74413cb8e3280e9 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;
 }