The Wayback Machine - https://web.archive.org/web/20110902035421/http://www.codeguru.com:80/cpp/controls/

    Controls

    CCustomBitmapButton—MFC Button Control

    Create an owner-draw bitmap button and a frame for the title bar in one class.

    A Very Useful Class to Display SQL SELECT Results

    Display the results of a SQL SELECT operation. Many grid controls are available for VC++ developers, but this control is small yet contains many features for developers and end users.

    Colored ComboBox

    Coloring a ComboBox is not a trivial thing. Learn how to do it easily and effectively.

    NSChart Control

    This control creates a chart control in a dialog with Pie and Bar styles.

    CCustomTabCtrl - MFC Tab Control

    Learn about an MFC Tab Control that's a clone of the Excel Tab Sheet Control.

    Multiple Clocks

    Displays several clock styles.

    Building and Using a Toolbar Header

    How to implement a header for your SDI/MDI project.

    Choice Button

    Learn about a owner drawn button that can display a bitmap and a dropdown menu with a list of choices.

    ImageTextButton

    Learn about a Owner Draw button that loads a bitmap and embeds text on it.

    Implement a Console Window Using Edit Control

    If you are writing a telnet-like application that needs a console window, try this simple solution.

    CGroupCheckBox

    Add the CGroupCheckBox component to your project and add a CGroupCheckBox control with Class Wizard.

    Improving the Functionality of Comboboxes in wxGrid

    Code to provide better functionality of comboboxes in the wxWidgets grid class.

    An E Notation Numeric Edit Control

    An E Notation Numeric Edit Control

    Make a Customized ToolBar Dialog Work in MFC (VC6)

    Simply by adding some code to your MFC frame windows, you can make your toolbar customize dialog works.

    Spying a File System

    How to create the basis for a file system spy application.

    Showing Tooltips/Icons for Status Bar Panes

    Class to show tooltips and icons for individual panes and to allow changing of text and background color of individual panes. (The article, demo project, and source code were updated.)

    Transparent Edit Using a Pattern Background Brush

    This article explains how to create a transparent edit control. Instead of using a NULL_BRUSH for the CtlColor message, we create a pattern brush using a chunk of bitmap from the parent window from the place where the editor is going to be shown.

    Enterprise Application Integration (EAI) Using XML

    Best Practices and Standards in EAI must be practiced for reducing costs and increasing the effeciency for any EAI application.

    How to Determine Whether a Printer Supports Color

    Learn how to determine whether a printer supports color printing.

    A Drag and Drop List Control

    Discover a new implementation of a drag and drop in a list and tree control.

    MFC Extension Class CProductKey

    Provides an easy way to enter IDs, PINs, product keys, or so. Also interesting for those who want to know how to embed a customized font into an application.

    XP Themes Tab Control in any orientation

    How to make XP Themes Tab Control work properly in other than top orientation.

    Building Translucent Menus

    Discover how to build a translucent menu.

    CExtStatusControlBar: Managing a Status Bar's Panes is Getting Easier

    The status bar's panes may contain almost any control you need: buttons, edits, animations, progress bars, and more. Learn to enable panes so you can add or remove them on the fly from the application's status bar.

    Using a RichEdit Control in the MFC Grid Control

    Add extra features to the MFC Grid Control so that the user can format the cells as in a spreadsheet program.

    Customized Report List Control with In-Place Combo Box '& Edit Control

    Learn how to implement a customized report list control with in-place combo box and edit control by using the reusable classes.

    CStatic with Scrolling Text

    Create a smart static control that features scrolling text.

    How to Easily Navigate and Edit a List View Control

    Learn how to navigate through the controls the way one navigates in an Excel sheet.

    TreeView with Three-State Checkboxes

    Create check boxes in tree controls that show partial selections.

    Create a Simple Image Button'—CGlyphButton

    Create a small, easy-to-use image button that looks as good as a native Windows button. Avoid the messy complications that arise when using most other custom image buttons.

    CCheckSK'—An Extended Check Box Class

    Extends CButton to create check boxes that can display LEDS or any icon to indicate on/off state. Extend MFC to subclass common controls and apply owner drawing to obtain any desired look.

    Tooltips for Menu Items and Popup Menu Items

    Learn a simple way to add tooltips to menu items. (The demo/source and header files were updated.)

    CXmlMenu'—Display Menus from XML Files

    Dynamically create menus from XML files.

    Multi-Column Tree View

    A multi-column tree view that is only 12 Kb long. It works excellently if you don't need all those colors, fonts, sorting, and whatever.

    One-To-Many Relationship Between Two List Controls

    Discover an example of data structures for the realization of constructing a one-to-many relationship between two data structures.

    Editable MSFLEXGRID Control-Derived Class

    Create an editable FlexGrid Control.

    Collapsible, Resizable, and Dockable XP-Style Control Bar

    Integrate into your applications a very simple, collapsible XP-style menu that is dockable and resizable.

    CNavigatorCtrl'—A Navigation Control that Allows You to Mark and Set Items Completed

    Learn about a custom navigation control that allows a user to scroll horizontally through any number of items, selecting them, marking them, and/or setting them as completed.

    RTF File Handling

    An RTF word processor that has standard features that include menus, a toolbar, a status bar, printing, open and save file dialogs, font support, tooltips, and much more. (The source code was updated.)

    Simple IE-like Menu and Toolbar

    A simple interface based on Internet Explorer that implements features introduced in Windows XP and remains compatible with all OS versions since Windows 98. Includes support for alpha channel images under Windows XP, both 3D and flat (XP) style, and rebar menu with full mouse and keyboard support. (The demo project and source code were updated.)

    HotProp Control

    The HotProp control was designed for applications that need a flexible, modeless property window. (The article, demo project, and source code were updated.)

    The Easiest Way to Code the Owner Drawn Menu

    The bare bones necessary to make wholly owner drawn menus, including the TOP MENU LINE. Once this is understood, one can proceed to write all kinds of classes to encompass the menu and make it look as fancy as one wants. (The article and source code were updated.)

    Single Class DevStudio-Like Menu Bar

    This Unicode-ready menu bar routine will create a resizable pop-up menu that docks and floats like a DevStudio Menu Bar. Learn the details needed to implement a menu bar in just four easy steps. (The article, demo project, and source code were updated.)

    RTF-to-HTML Converter

    Convert RTF data to HTML data.

    Using the Microsoft Flexgrid in Visual C++

    Details about the implementation of the Microsoft Flexgrid in Visual C++.

    How to Skin CListCtrl, Including Scrollbars and Column Headers

    Learn how to skin a CListCtrl, including the CHeaderCtrl and the scrollbars. You will be able to totally customize the look and feel of almost all the aspects of a CListCtrl. (The article, demo program, and figures were updated.)

    Masked CEdit Control

    A masked edit control allows per-character masking. Also, it can be put into passworded mode. There may also be read-only text inside of the box the user can not modify.

    Multicolumn Combobox

    The sample file was included.

    Adding Controls to listcontrol

    A simple article showing how to add controls to a list box. Includes coverage of adding the message handlers for each control.

    Hacking the CPropertySheet

    Tips and tricks for working with non-standard operations for properties. This includes changing the coordinates of buttons, hiding and moving the standard buttons, changing the tab label, using images with the tab label, placing images in the property sheet, adding new controls, and more.