The following table is an alphabetical list of the MFC samples included with Visual C++.
When building a sample application, first verify that the platform is set to your current platform in the Solution's Configuration property page. For example, you may need to change the platform from Itanium to Win32.
BUTTON Sample: Demonstrates a Menu and a Property Page
Demonstrates use of an in-place active menu, a stock property page, and the About box control option.
CIRC Sample: ActiveX Control
Demonstrates ActiveX control basics, including control painting, stock and custom properties, stock and custom events, use of colors and fonts, the stock Font property page, the default property page, and versioning.
CONTAINER Sample: Visual Editing Container Application
Demonstrates a Visual Editing Container Application.
IMAGE Sample: Creates an ActiveX Control That Downloads Asynchronously
Demonstrates how to use MFC to build an ActiveX control that is capable of downloading data asynchronously.
LICENSED Sample: Enforces Use of Design-Time and Run-Time Licenses
A control that enforces use of a design-time and run-time license.
LOCALIZE Sample: Control with a Localized User Interface
A control with a localized user interface that demonstrates use of separate type libraries and resource dynamic-link libraries (DLLs) for localization.
NETADDR Sample: Vista Net Address Verifier Control Sample
Demonstrates use of the Windows Vista "Net Address Verifier" control.
REGSVR Sample: Invokes Self-Registration Code
Demonstrates the invocation of Self-Registration Code.
SPINDIAL Sample: Demonstrates Property Page Validation
A control with the visual appearance of a spin-dial that demonstrates property page data validation.
TESTHELP Sample: ActiveX Control with Tooltips and Help
An ActiveX control that has its own help file and tooltips.
TIME Sample: Fires a Timer at Set Intervals
A control that is invisible at run time and fires a timer event at set intervals. Demonstrates notification functions and ambient properties.
XLIST Sample: Displays Text or Bitmaps
A control, subclassed from a Windows list box, that displays text or bitmap items.
Sample CLIPART: Common Resources
The CLIPART directory contains sample resources that you can use to customize the appearance of your application.
CFileDialog Sample: Logging Event Order
Creates a custom dialog box that illustrates what events are generated when you create a
CFileDialog. CMNCTRL1 Sample: Demonstrates Common Control MFC Classes, Part 1
Demonstrates how to create and change the styles of Windows Common Controls using MFC classes (Part 1).
CMNCTRL2 Sample: Demonstrates Common Control MFC Classes, Part 2
Demonstrates how to create and change the styles of Windows Common Controls using MFC classes (Part 2).
CMNCTRL3 Sample: Demonstrates New MFC Controls Available in Visual Studio 2008
Demonstrates some of the new controls available with MFC on Windows Vista, including the command link button (
CButton), the pager control ( CPagerCtrl), the split button ( CSplitButton), and the network address control ( CNetAddressCtrl). CTRLBARS Sample: Illustrates Custom Control Bars
Custom toolbar and status bar, dialog bar, and floating palette.
CTRLTEST Sample: Implements Custom Controls
Owner-draw list box and menu, custom control, bitmap button, spin control.
DIBLOOK Sample: Illustrates the Use of DIBs and Color Palettes
Demonstrates the Use of DIBs and Color Palettes.
DLGCBR32 Sample: Demonstrates Adding a Status Bar and Toolbar to Dialog Boxes
Adding a toolbar and a status bar to a dialog-based application.
DLGTEMPL Sample: Creates Dialog Templates Dynamically
Demonstrates the dynamic creation of dialog templates.
DOCKTOOL Sample: Demonstrates Dockable Toolbars
Dragging and floating toolbars that are "dockable".
DYNAMENU Sample: Dynamically Updates Menus
Dynamically modifying list of items in menus; handling commands not known at compile time; and updating the status bar command prompt for such commands.
GUIDGEN Sample: Generates Globally Unique Identifiers (GUIDs)
A simple dialog-based MFC application that can help you as you code ActiveX applications.
MAKEHM Sample: Utility for Associating Resources with Help Contexts
A console application that produces a mapping between resource identifications and Help contexts.
MDI Sample: Demonstrates MDI Without Using Doc/View Architecture
MDI application that does not use documents and views.
MDIDOCVW Sample: Demonstrates MDI Using Doc/View Architecture
New version of the MDI sample that uses the document/view architecture.
MMXSwarm Sample: Demonstrates CImage and Visual C++ MMX Support
Demonstrates how to use
CImage, the data type, and device-independent bitmaps (DIBs). __m64 MODELESS Sample: Uses a CDialog Object as a Modeless Dialog Box
Demonstrates the use of an MFC
CDialog object as a modeless dialog. NPP Sample: Demonstrates the Windows Messaging API (MAPI)
Demonstrates the Windows Messaging API (MAPI).
PROPDLG Sample: Demonstrates Property Sheet Support
Property sheets (dialogs).
ROWLIST Sample: Demonstrates Selecting Full Rows in List Views
Illustrates full row selection in a list-view common control.
SCRIBBLE Sample: MFC MDI Drawing Application
SCRIBBLE is drawing application that provides simple illustrations of a wide breadth of MFC features.
SimpleImage Sample: Loads, Resizes, Converts, and Saves Images
Demonstrates loading, resizing, conversion, and saving images.
SNAPVW Sample: Uses Property Pages in a Form View Application
Shows how to use property pages in a MDI child frame window.
Spiro Sample: Animated Drawing Game
A game that shows to use
CImageList and how to use memory display contexts in applications requiring animation effects. TRACKER Sample: Illustrates Various CRectTracker Styles and Options
CRectTracker styles and options. VariantUse Sample: Demonstrates the Use of Variants
Demonstrates the use of the variant data type.
VIEWEX Sample: Demonstrates Multiple Views, Scroll Views, and Splitter Windows
Multiple views, scroll view, splitter windows.
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback