The following MFC features are new for Visual C++ 6.0.
For MFC issues that may affect porting to Visual C++ 6.0, see .
Active Document Containment
provides a single frame in which to work with documents, instead of requiring you to create and use multiple application frames for each document type. It differs from basic OLE technology in that OLE works with embedded objects within a compound document in which only a single piece of content can be active. With Active Document Containment, you activate an entire document, that is, an entire application, including associated menus and toolbars, within the context of a single frame. AppWizard automates the MFC coding required for Active Document Containment. Active Document Containment is implemented by using the new class .
Dynamic HTML Control with CHtmlView
A new MFC class, , enables you to host Dynamic HTML within your MFC applications. CHtmlView allows your application's view to display HTML pages that contain Dynamic HTML just as a Web browser would display them. CHtmlView provides many browser features, including a history list, favorites (bookmarks), and security features. See .
Internet Explorer 4.0 Common Controls
MFC provides support for the latest Internet Explorer 4.0 common controls in classes such as , , , and . You can access these controls from the Controls toolbar in the Dialog editor. In addition to these new control classes, new functionality was added to most of the existing MFC common control classes. These modifications include flat toolbars, image list support for several control types (such as header, toolbar, and status bar controls), and new attributes. These new properties are also supported in the Dialog editor controls.
MFC Classes — New or Updated
Class
Control
Status
Description
Extended combo box
New
Extends the combo box control by providing support for image lists.
Date and time picker
New
Supports either an extended edit control, or a simple calendar interface control, that allows a user to choose a specific date or time value.
Header
Updated
Supports drag-and-drop operations and bitmaps in a header control.
No
New
Supports a control for Web browsing within an application. The control supports Dynamic HTML in MFC.
No
Updated
Includes a new function for writing data to the server.
No
Updated
Includes new functions that provide control over the size of chunks written to the HTTP server.
Image list
Updated
Supports images used by other controls, for example, in header controls and list controls.
No
Updated
Supports setting cookies for a specified URL, returning cookies for a specified URL and all its parent URLs, and retrieving the variable specifying the length of the cookie stored in the buffer.
Address
New
Supports an edit box for manipulating an Internet Protocol (IP) address.
List
Updated
Supports the grouping of items using working areas. Also supports virtual list views.
No
Updated
Supports assigning or retrieving a default menu item on a specified menu, and retrieving information about a menu item.
Month calendar
New
Supports a simple calendar interface control that allows a user to select a date.
No
Updated
Contains a new function that retrieves a handle to an icon associated with the server of a particular CLSID.
No
New
Provides MFC OLE DB support for form views.
No
New
Supports active document containment.
No
Updated
Supports converting time information stored in the object to a Win32-compatible structure.
Progress
Updated
Supports smooth and vertical styles for progress controls.
No
Updated
Supports property sheets with stacked or scrolling tabs.
No
New
Supports the Wizard97 style of property sheets, available with Windows 98 and Windows NT 5.0.
No
New
Supports the Wizard97 style of property pages, available with Windows 98 and Windows NT 5.0.
No
New
Supports a toolbar that can contain additional child windows in the form of controls.
Rebar
New
Implements the internal control of the CRebar object.
Slider
Updated
Supports ToolTips in a slider control and additional slider control styles.
Spin button
Updated
Supports 32-bit ranges in a spin button control.
No
Updated
Supports ToolTips, icons, and background color in a status bar.
Status bar
Updated
Implements the internal control of the CStatusBar object.
No
Updated
Supports enhanced string finding, replacing, removing, inserting, deleting, and formatting.
Tab
Updated
Supports new styles for tab focus and appearance. Also supports inserting new tabs into an existing tab control.
No
Updated
Supports converting time information stored in the object to a Win32-compatible structure.
No
Updated
Supports Internet Explorer 4.0 flat and transparent toolbar styles.
Toolbar
Updated
Implements the internal control of the CToolBar object.
Tool tip
Updated
Implements updating of a ToolTip and its attributes.
Tree
Updated
Supports check boxes and automatic single-node expansion in a tree control.
For fixes and porting considerations, see in the Visual C++ Programmer's Guide.
MFC Globals — New
MFC contains two new globals. tests the passed SCODE to see if it is an error. This function can be used to check the return values of calls to OLE functions in your application. indicates the target of the dump output. This function can be used to generate an image of the current stack.
Wizard97 Style for Property Sheets
Wizard97 is a new wizard style for property sheets and property pages for Windows 98 and Windows NT 5.0. MFC implements this support in two new classes, and . These new classes support structures that are not compatible with and . The Wizard97 styles support background bitmaps and wide title headers, including subheaders, in a property page.