MFC Windows 95 Support

This article describes how MFC version 4.x supports programming for Windows 95.

The most important change is that MFC versions 4.0 and later fully supports programming for Microsoft Windows 95. Your MFC applications can run on either Windows 95 or Windows NT version 3.51 and later. Under each environment, your applications have the appropriate visual look.

Here are the key features for Windows 95:

For more information on these Windows 95 features, see Windows 95 Functionality.

New Common Control Classes

MFC supplies classes for new Win32 common controls, including the rich edit control. These controls are available under Windows 95 and Windows NT version 3.51 or later. They supplement Windows common controls such as list boxes, edit controls, and combo boxes. Most of the new control classes were released in beta quality with MFC version 3.1; version 4.0 supplies them in finished form and includes controls not released with version 3.1.

For more on using the common control classes, see Control Topics.

New Implementations for Control Bar and Property Sheet Classes

The following MFC classes have been reimplemented using some of the new Windows common controls listed earlier in this article:

In addition, enhancements to class CControlBar, the base class for CToolBar, CStatusBar, and CDialogBar, let your users resize toolbars in the same way you can resize the toolbars in Visual C++ and many other Microsoft applications.

Rich Edit Classes

In addition to CRichEditCtrl, a class that encapsulates the rich edit text control, MFC supplies related classes to complement the control and enhance its use for building text editors. These new classes are listed below. The new classes integrate a rich edit control with the MFC document/view architecture.

Other New Controls

Other new MFC classes provide specialized list box controls:

New Common Dialogs

There are several new classes for common dialog boxes. OLE dialog boxes now use the OLEDLG.DLL file supplied by the system. All common dialog classes are now derived from CCommonDialog.

Ability to Easily Customize the File Open Dialog Box

Class CFileDialog includes new member functions for customizing the File Open dialog box. For example, you can add your own controls to the dialog box.

See Also   Changes from MFC Versions 2.0 and 2.5, Changes from MFC Version 2.0 32-Bit Edition, Features No Longer Available in MFC