comparison win/dw.c @ 89:ec311fe773da

Include a vertical scrollbar on comboboxes when there are too many items.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 19 Apr 2002 17:52:38 +0000
parents 58d8139fe0a2
children eeb98f881663
comparison
equal deleted inserted replaced
88:58d8139fe0a2 89:ec311fe773da
3874 * id: An ID to be used with WinWindowFromID() or 0L. 3874 * id: An ID to be used with WinWindowFromID() or 0L.
3875 */ 3875 */
3876 HWND dw_combobox_new(char *text, ULONG id) 3876 HWND dw_combobox_new(char *text, ULONG id)
3877 { 3877 {
3878 HWND tmp = CreateWindow(COMBOBOXCLASSNAME, 3878 HWND tmp = CreateWindow(COMBOBOXCLASSNAME,
3879 "", 3879 text,
3880 WS_CHILD | CBS_DROPDOWN | WS_CLIPCHILDREN, 3880 WS_CHILD | CBS_DROPDOWN | WS_VSCROLL |
3881 WS_CLIPCHILDREN,
3881 0,0,2000,1000, 3882 0,0,2000,1000,
3882 DW_HWND_OBJECT, 3883 DW_HWND_OBJECT,
3883 (HMENU)id, 3884 (HMENU)id,
3884 NULL, 3885 NULL,
3885 NULL); 3886 NULL);