The windows common controls include the list box, combo box, and
edit controls which are as useful as the buttons and static controls. The
above said common controls are used for accepting inputs from the user in
different forms.
The window styles that can be used for these controls include the ones given for
the button and static controls: WS_CHILD, WS_DISABLED, WS_VISIBLE, WS_TABSTOP,
and WS_VSCROLL. In addition to these window styles, list box and edit controls
can also have WS_HSCROLL, WS_VSCROLL, and WS_BORDER window styles, and combo box
controls can have the WS_VSCROLL style. In addition to these window styles
extended window styles can also be used with these controls.
An edit control is a rectangular child window which has limited text
editing capabilities. The user can enter text from the keyboard. The user can
enter text when the control displays a flashing insertion point, when the
control gets focus. The mouse can be used to move the cursor and select
characters in the control, or to position the cursor for inserting characters.
List box controls consist of a list of character strings. The control is
used whenever an application needs to present a list of strings that the user
can view and select. The user can select a string by pointing to the string with
the mouse and clicking a mouse button. When a string is selected, it is
highlighted and a notification message is passed to the parent window.
Combo box controls consist of a selection field, similar to an edit
control, plus a list box. The list box may be displayed at all times or may be
dropped down when the user selects a pop box next to the selection field.
Depending on the style of the combo box, the user can or cannot edit the
contents of the selection field.
|