1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<title>Windows Interface Reference: Combobox structure</title> 6</head> 7 8<body> 9 10<h1>Combobox</h1> 11 12<p>The Combobox structure contains the styles and options used in messages sent to a 13combobox. A combobox is a combination of a list box together with an edit control. 14 Most control of a combobox is by means of messages. Specialised combobox 15messages begin with <a href="Message.html#Combobox">CB_</a>. The values from the 16Notification substructure are sent as the <em>code</em> parameter in a <a 17href="Message.html#WM_NOTIFY">WM_NOTIFY</a> message. </p> 18 19<pre>structure Combobox: 20sig 21 structure Style: 22 sig 23 include BIT_FLAGS where type flags = Window.Style.flags 24 val WS_OVERLAPPED: flags and WS_POPUP: flags and WS_CHILD: flags and WS_MINIMIZE: flags 25 and WS_VISIBLE: flags and WS_DISABLED:flags and WS_CLIPSIBLINGS:flags 26 and WS_CLIPCHILDREN:flags and WS_MAXIMIZE:flags and WS_CAPTION:flags 27 and WS_BORDER:flags and WS_DLGFRAME:flags and WS_VSCROLL:flags and WS_HSCROLL:flags 28 and WS_SYSMENU:flags and WS_THICKFRAME:flags and WS_GROUP:flags and WS_TABSTOP:flags 29 and WS_MINIMIZEBOX:flags and WS_MAXIMIZEBOX:flags and WS_TILED:flags and WS_ICONIC:flags 30 and WS_SIZEBOX:flags and WS_OVERLAPPEDWINDOW:flags and WS_TILEDWINDOW:flags 31 and WS_POPUPWINDOW: flags and WS_CHILDWINDOW: flags 32 and CBS_SIMPLE: flags and CBS_DROPDOWN: flags and CBS_DROPDOWNLIST: flags 33 and CBS_OWNERDRAWFIXED: flags and CBS_OWNERDRAWVARIABLE: flags and CBS_AUTOHSCROLL: flags 34 and CBS_OEMCONVERT: flags and CBS_SORT: flags and CBS_HASSTRINGS: flags 35 and CBS_NOINTEGRALHEIGHT: flags and CBS_DISABLENOSCROLL: flags 36 and CBS_UPPERCASE: flags and CBS_LOWERCASE: flags 37 end 38 39 structure Notifications: 40 sig 41 val CBN_SELCHANGE: int 42 val CBN_DBLCLK: int 43 val CBN_SETFOCUS: int 44 val CBN_KILLFOCUS: int 45 val CBN_EDITCHANGE: int 46 val CBN_EDITUPDATE: int 47 val CBN_DROPDOWN: int 48 val CBN_CLOSEUP: int 49 val CBN_SELENDOK: int 50 val CBN_SELENDCANCEL: int 51 end 52 53 datatype CBDirAttr = 54 DDL_READWRITE | DDL_READONLY | DDL_HIDDEN | DDL_SYSTEM | DDL_DIRECTORY | 55 DDL_ARCHIVE | DDL_POSTMSGS | DDL_DRIVES | DDL_EXCLUSIVE 56end</pre> 57</body> 58</html> 59