The Wayback Machine - https://web.archive.org/web/20110902032838/http://www.codeguru.com:80/cpp/w-d/

    Windows & Dialogs

    Creating a Dialog with a Variable Number of Buttons

    A solution for having a variable number of buttons on a dialog.

    Automatic Dialog Resizing

    Another look at cleanly resizing a dialog and its controls.

    Cookie Viewer/Killer

    Find, view, and delete cookies that have been left on your machine.

    Non-Resizable, Non-Movable Window

    If you want to work with nonresizable, nonmovable windows, insert this code into your project (SDI or MDI applications). (The article was updated.)

    Creating Sticky Windows

    Position-interdependent popup windows have been used to great effect in current applications to simplify the organization of a complex UI. This article presents a flexible, if somewhat rustic, technique for accomplishing this behavior. (The source code was updated.)

    Changing the Default Background Color in an SDI Application

    SDI applications created with MFC comes with a default background color of white. Learn how to implement any color you desire.

    Adding a Splash Screen to Your Applications

    Create splash screens for your applications without the use of MFC.

    Zero or One Document Interface (ZODI)

    How to create a single-document application by using a multi-document interface (MDI). You may have zero or one documents at a time.

    Rendering a Region Dialog From a BMP/JPEG

    A flexible and user-friendly Region Dialog that support things to permit the user to render a region from both image resource and images files such as bitmap and JPEG. You can drag and drop to apply new images; press Ctrl+Z to go back through all the images you have used, select the background color on different files, and even zoom the images to any ratio you like. Also includes accessory functionalities such as "Lock Machine," "Shut Down Machine After n Minutes," "Start Screen Saver," and so on.

    Creating Thin-Framed Splitter Windows

    Discover this method for creating splitter windows with thin frames, which is useful when creating a data view with a scale (splitting data view and scale into separate windows).

    MFC Transparent CDialog Demo

    Create a splash screen or skeleton application by using non-rectangular windows. The dialog is shaped by a supplied bitmap. The demo also demonstrates dragging the dialog by clicking anywhere on a visible portion, as well as timer events and using a button on the transparent dialog.

    Creating a Rotating Dialog Box

    Discover how to make dialog applications of non-rectangular shapes and how to rotate those custom-shaped windows. (Very cool!)

    Processing Keyboard Messages

    Learn about various solutions for processing keyboard messages in dialogs and form views.

    Multiple File Selection Without Any Extra Code

    See how to select multiple files from the Open File dialog without creating a new class.

    Creating a Shareware Registration Dialog Box

    Manage shareware application registration and trial periods with this dialog.

    MFC, Round Windows, and Highlight Buttons

    Creating non-standard Windows interfaces is cool. Learn a program technique using window regions and CButton class overloading.

    Dynamically Create Different Views for SDI Projects

    SDI Projects have one View associated with one document. This article lets you use more than one view dynamically.

    QuickWin - Console Application Into a Window

    Extremely useful tool that enables you to redirect the output of applications to a window. Also includes CRedirect class for inclusion in your own applications.

    Resizable Docking Window

    Resizable Docking Window

    Detect if window is split

    Detect if window is split

    CDialog using animated control

    CDialog using animated control

    CFormView Class with Custom Background Color

    CFormView Class with Custom Background Color

    Automatic Doc/View File Encryption/Decryption

    Learn how to re-derive a CDocument class to gain automatic file encryption and decryption that includes backward compatibility of existing files. (Encryption applicable to other areas as well.)

    Creating an Open/SaveAs That Stores the MRUD

    [Update] Tired of having to navigate from "MyDocuments" for a document every time you open your app? This class stores your Most Recently Used Directory (MRUD) in the Registry for the next time you open the application.

    A Class to Display Skinned Popups Like MSN Messenger

    Build a class to display popup dialogs like the the MSN messenger window. This supports non-rectangular windows by using a BMP with a transparency color.

    Invisible Splitter Window

    This article explains about how to hide the splitter window and make it non-resizable.

    How to Create an Option Configuration Sheet Manager

    Create a configuration sheet manager similar to what is in Mozilla or Netscape Navigator. This is a set of dialogs associated with list/tree controls.

    Showing Window Contents While Resizing the Splitter

    The CSplitterWnd class of MFC does not draw panes while resizing. This class allows you to show a window's contents while you are resizing the splitter pane.

    Win32 Console Application Tools

    Discover how to move the cursor, clear the screen, and set colors in the console.

    Subsystem Switch

    Windows distinguishes the console or GUI program from PE file's Subsystem value. This article explains those and show simple sample program.

    Closing A Window Smoothly

    Enhance the user interface for your application by closing its windows in a smoothly way--make your window disappear (fade out) slowly while its closing.

    Rich Static Text Control using a Small Markup Language

    Include text justification, different fonts, and styles to give the information in your dialogs a little more pizazz. Uses a simple markup language.

    CWizardPage - an MFC Convenience Class for Wizard Dialogs

    An MFC Convenience Class for Wizard Dialogs.

    Color Picker

    A very COOL color pick dialog with a color dropper like Photoshop and FrontPage 2000.

    Color Dialog Control Set

    There are three controls included with the demo project, which are CLumChooser, CHusSatChooser and CColorBox.

    Easy Dialog, Property Sheet and Window Resizing

    A simple, clean and straightforward way to add resizing dialogs, property sheets, forms and windows to your application.

    CFindInFiles Class (similar to Visual Studio 6.0)

    Create a "Find in Files" functionality similar to that found in Visual C++ 6.0.

    RGB Preview Dialog

    This application shows a COLORREF structure that use Slider Control to determinates your 24-bit RGB color and shows also simple way to communicate between CSliderCtrl, CEdit, and CStatic.

    Creating a View in Dialog (An easy way).

    Adding a view to a dialog.

    MFC class "Tip of the Day" like WinZip

    This control, CStartupTip, helps to create a dialog "Tip of the Day" like WinZip "Tip of the Day".

    CLayeredWindowHelperST v1.0 - A wrapper class for transparent windows

    CLayeredWindowHelperST is a wrapper class of all required APIs to add support for transparent (layered) windows to your applications.

    DOS Text Screen in Dialog

    The CMonitor control is a lightweight class suitable for displaying dos text screen in Dialog.

    Multiple Browser Windows in an App.

    Open multiple sites in one window.

    Message Balloons

    There are times when one would like to display messages in an non-obtrusive way. Message Balloons are one of the new ways.

    Detail View in FileOpen Dialog

    Code to provide a detail view by default in your extended FileOpen dialog.

    Dialog Switcher Using a Tree Control

    So you want to use the new style of dialog where you pick an option from a tree on the left and the appropriate form shows up on the right. This article shows you were to start and how to accomplish this!

    CSplitDialog for Dialog based Applications

    CSplitDialog for Dialog based Applications

    Drop List Controlled Dynamic Dialog Box

    Create a dynamic dialog that can change its controls based on a listbox selection.

    Countdown Dialog DLL

    Have you ever needed a messagebox style dialog to wait before allowing processing to continue and then disappear automatically? This DLL has a simple dialog box with a progress bar that does just that.

    How to use a personnal New Document Method

    This is a simple way to use a personnal dialog that appears when your application uses more than one document template and you click the 'new' button, or during the start of the appliacation.