Control classes encapsulate a wide variety of standard Windows controls ranging from static text controls to tree controls. In addition, MFC provides some new controls, including buttons with bitmaps and control bars.
The controls whose class names end in "Ctrl" were new in Windows 95 and Windows NT version 3.51.
Static Display Controls
- A static-display window. Static controls are used to label, box, or separate other controls in a dialog box or window. They may also display graphical images rather than text or a box.
- An editable-text control window. Edit controls are used to accept textual input from the user.
- Supports an edit box for manipulating an Internet Protocol (IP) address.
- A control in which the user can enter and edit text. Unlike the control encapsulated in CEdit, a rich edit control supports character and paragraph formatting and OLE objects.
Controls That Represent Numbers
- A control containing a slider, which the user moves to select a value or set of values.
- A pair of arrow buttons the user can click to increment or decrement a value.
- Displays a rectangle that is gradually filled from left to right to indicate the progress of an operation.
- A scroll-bar control window. The class provides the functionality of a scroll bar, for use as a control in a dialog box or window, through which the user can specify a position within a range.
- A button control window. The class provides a programmatic interface for a push button, check box, or radio button in a dialog box or window.
- A button with a bitmap rather than a text caption.
- A list-box control window. A list box displays a list of items that the user can view and select.
- Provides the functionality of a Windows list box; allows the user to move list box items, such as filenames and string literals, within the list box. List boxes with this capability are useful for an item list in an order other than alphabetical, such as include pathnames or files in a project.
- A combo-box control window. A combo box consists of an edit control plus a list box.
- Extends the combo box control by providing support for image lists.
- Displays a list of items with check boxes, which the user can check or clear, next to each item.
- Displays a collection of items, each consisting of an icon and a label, in a manner similar to the right pane of Windows Explorer.
- Displays a hierarchical list of icons and labels arranged in a manner similar to the left pane of Windows Explorer.
Toolbars and Status Bars
- Provides the functionality of the Windows toolbar common control. Most MFC programs use CToolBar instead of this class.
- A horizontal window, usually divided into panes, in which an application can display status information. Most MFC programs use CStatusBar instead of this class.
- Displays a simple video clip.
- A small pop-up window that displays a single line of text describing the purpose of a tool in an application.
- Supports either an extended edit control, or a simple calendar interface control, that allows a user to choose a specific date or time value.
- Displays titles or labels for columns.
- Supports a simple calendar interface control that allows a user to select a date.
- A control with tabs on which the user can click, analogous to the dividers in a notebook.
- Enables the user to create a hot key combination, which the user can press to perform an action quickly.
- Renders marked-up text and launches appropriate applications when the user clicks the embedded link.
- Provides the functionality of the WebBrowser ActiveX control in an MFC window.
- Provides the functionality of the Windows image list. Image lists are used with list controls and tree controls. They can also be used to store and archive a set of same-sized bitmaps.
- The base class for all views associated with Windows controls. The views based on controls are described below.
- A view that contains a Windows standard edit control.
- A view that contains a Windows rich edit control.
- A view that contains a Windows list control.
- A view that contains a Windows tree control.