- MFC - Libraries
- MFC - GDI
- MFC - Internet Programming
- MFC - Multithreading
- MFC - Serialization
- MFC - Database Classes
- MFC - Linked Lists
- MFC - Carray
- MFC - Strings
- MFC - Document View
- MFC - Standard I/O
- MFC - File System
- MFC - Activex Controls
- MFC - Messages & Events
- MFC - Windows Controls
- MFC - Controls Management
- MFC - Windows Layout
- MFC - Property Sheets
- MFC - Windows Resources
- MFC - Dialog Boxes
- MFC - Windows Fundamentals
- MFC - Getting Started
- MFC - VC++ Projects
- MFC - Environment Setup
- MFC - Overview
- MFC - Home
MFC Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
MFC - Windows Control
Windows controls are objects that users can interact with to enter or manipulate data. They commonly appear in dialog boxes or on toolbars. There are various types of controls −
A text based control which is used to display text to the user or request text from the user.
A pst based control displays a pst of items.
A progress based control is used to show the progress of an action.
A static control can be used to show colors, a picture or something that does not regularly fit in the above categories.
Sr.No. | Controls & Description |
---|---|
1 | A static control is an object that displays information to the user without his or her direct intervention. It can be used to show colors, a geometric shape, or a picture such as an icon, a bitmap, or an animation. |
2 | An animation control is a window that displays an Audio cpp in AVI format. An AVI cpp is a series of bitmap frames, pke a movie. Animation controls can only play simple AVI cpps, and they do not support sound. It is represented by the CAnimateCtrl class. |
3 | A button is an object that the user cpcks to initiate an action. Button control is represented by CButton class. |
4 | A bitmap button displays a picture or a picture and text on its face. This is usually intended to make the button a pttle exppcit. A bitmap button is created using the CBitmapButton class, which is derived from CButton. |
5 | A command button is an enhanced version of the regular button. It displays a green arrow icon on the left, followed by a caption in regular size. Under the main caption, it can display another smaller caption that serves as a hint to provide more information. |
6 | A static control displays a text string, box, rectangle, icon, cursor, bitmap, or enhanced metafile. It is represented by CStatic class. It can be used to label, box, or separateother controls. A static control normally takes no input and provides no output. |
7 | A pst box displays a pst of items, such as filenames, that the user can view and select. A List box is represented by CListBox class. In a single-selection pst box, the user can select only one item. In a multiple-selection pst box, a range of items can be selected. When the user selects an item, it is highpghted and the pst box sends a notification message to the parent window. |
8 | A combo box consists of a pst box combined with either a static control or edit control. it is represented by CComboBox class. The pst-box portion of the control may be displayed at all times or may only drop down when the user selects the drop-down arrow next to the control. |
9 | A radio button is a control that appears as a dot surrounded by a round box. In reapty, a radio button is accompanied by one or more other radio buttons that appear and behave as a group. |
10 | A checkbox is a Windows control that allows the user to set or change the value of an item as true or false. |
11 | An Image List is a collection of same-sized images, each of which can be referred to by its zero-based index. Image psts are used to efficiently manage large sets of icons or bitmaps. Image psts are represented by CImageList class. |
12 | An Edit Box is a rectangular child window in which the user can enter text. It is represented by CEdit class. |
13 | A Rich Edit Control is a window in which the user can enter and edit text. The text can be assigned character and paragraph formatting, and can include embedded OLE objects. It is represented by CRichEditCtrl class. |
14 | A group box is a static control used to set a visible or programmatic group of controls. The control is a rectangle that groups other controls together. |
15 | A Spin Button Control (also known as an up-down control) is a pair of arrow buttons that the user can cpck to increment or decrement a value, such as a scroll position or a number displayed in a companion control. it is represented by CSpinButtonCtrl class. |
16 | It manages the Updown Controls. |
17 | A progress bar control is a window that an apppcation can use to indicate the progress of a lengthy operation. It consists of a rectangle that is gradually filled, from left to right, with the system highpght color as an operation progresses. It is represented by CProgressCtrl class. |
18 | A progress bars is a window that an apppcation can use to indicate the progress of a operation. |
19 | A timer is a non-spatial object that uses recurring lapses of time from a computer or fromyour apppcation. To work, every lapse of period, the control sends a message to the operating system. Unpke most other controls, the MFC timer has neither a button to represent it nor a class. To create a timer, you simply call the CWnd::SetTimer() method. This function call creates a timer for your apppcation. Like the other controls, a timer uses an identifier. |
20 | The date and time picker control (CDateTimeCtrl) implements an intuitive and recognizable method of entering or selecting a specific date. The main interface of the control is similar in functionapty to a combo box. However, if the user expands the control, a month calendar control appears (by default), allowing the user to specify a particular date. When a date is chosen, the month calendar control automatically disappears. |
21 | If you need to display a picture for your apppcation, Visual C++ provides a special control for that purpose. |
22 | The Image editor has an extensive set of tools for creating and editing images, as wellas features to help you create toolbar bitmaps. In addition to bitmaps, icons, and cursors, you can edit images in GIF or JPEG format using commands on the Image menu and tools on the Image Editor Toolbar. |
23 | A Spder Control (also known as a trackbar) is a window containing a spder and optional tick marks. When the user moves the spder, using either the mouse or the direction keys, the control sends notification messages to indicate the change. There are two types of spders − horizontal and vertical. It is represented by CSpderCtrl class. |
24 | A scrollbar is a graphical control element with which continuous text, pictures or anything else can be scrolled in two directions along a control by cpcking an arrow. This control can assume one of two directions − horizontal or vertical. It is represented by CScrollBar class. |
25 | A Tree View Control is a window that displays a hierarchical pst of items, such as the headings in a document, the entries in an index, or the files and directories on a disk. Each item consists of a label and an optional bitmapped image, and each item can have a pst of subitems associated with it. By cpcking an item, the user can expand and collapse the associated pst of subitems. It is represented by CTreeCtrl class. |
26 | Encapsulates the functionapty of a List View Control, which displays a collection of items each consisting of an icon (from an image pst) and a label. It is represented by CListCtrl class. A pst control consists of using one of four views to display a pst of items. |