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

    Windows & Dialogs

    Graphics Class Design : Shape

    Class Shape can provide you with the ability to represent things appearing in a Window. Learn about this class from an industry legend.

    Using Windows Vista Built-In Double Buffering

    Learn how to fixing flickering issues when drawing graphics by using double buffering.

    There is More Than Just a Little Touching...

    The way you interact with a personal computing device is changing and is about to change even more with lots of touching and even a little hidden video.

    General Solution for a Transparent Control

    Discover a very simple, integrated method to make a control, such as static, button, sliderctrl, and progress control transparent in a dialog box.

    Customizable Alert Window

    Observe the use of a small framework for building alert windows that can be customized in various styles.

    Multiple Views Layout Without a Splitter

    Learn how to show multiple views in a frame window without using a splitter.

    Getting Past the 2 Gb File Limit

    Take a closer look at the 2 Gb limit that we are plagued with in different languages, and how to get around them.

    A Deterministic Method of Determining a Document's Modified State

    Determine when a document has been modified. In the particular case of word processors, most tend to have a "dirty" flag that is set when a user types. This article demonstrates a smarter "dirty" flag that uses probabilistic methods.

    Animate an Icon on the Taskbar when the Application Is Minimized

    Learn how to loop through an icon sequence, simulating animation, while your application is minimized.

    Resources Explorer

    Learn about a search files with resources to explore it. The selected resource can be extracted. This tool is a sample of using Splitter, List, Tree, and resource display.

    Progress Sphere

    Learn about a class that displays and automates a translucent, shadowed modal dialog with a progress sphere.

    TIP: Dialog-Based, Single-Instance Applications

    Limit your dialog-based programs to a single instance by modifying the dialog template.

    Colorizing the Scroll Bars of Your Application's Window

    Learn how to colorize the scroll bars of your application's Window.

    Browse for Folder with a Quick Pick

    Learn about a customized version of the "Browse for folder" dialog that creates quick picks to your selected directories.

    File Open and Save As Dialogs for MFC Applications Using GDI+

    Learn about CFileDialog-derived classes that offer an easy way to implement File Open and Save As dialogs in MFC applications that use GDI+.

    XP Theme Support for Rich Edit and Custom Controls

    Learn how to add genuine Windows XP theme support to Rich Edit controls and extend the code for your own custom controls!

    Puzzle, a Game with the MFC Doc/View Architecture (SDI/MDI)

    Learn how to display a menu with thumbnails and several other windows, move and manage the pieces of a puzzle with a linked list, and then show them without flicker.

    Win32 Thread Synchronization, Part I: Overview

    Learn about processes, threads, and a couple of thread synchronization techniques.

    Animated Multithread Splash

    Build a real multithreaded splash, with the slow loading process and the animated splash running simultaniously.

    Visual Studio.NET Style Tear Off Panes - Part IV

    Learn about a framework that can be used to implement Visual Studio.NET-style Tear Off panes. The framework uses the commonly used MFC classes to achieve the functionality. This article is the fourth in the series.

    Working Around a VS .NET 2003 DDE Bug

    An MDI or SDI application supporting DDE, created by VS 7.1 (.NET 2003), fails to open a document using DDE (Dynamic Data Exchange). Learn an easy way to rectify this problem.

    BiSplitter 1.1

    BiSplitter is MFC-compatible class for creating a splitter window that looks like a Microsoft Outlook window.

    D3DXQUATERNION-Based Camera for Flight Simulations

    Learn about a DirectX Quaternion-based camera class to implement the camera modal in 3D flight simulations.

    Visual Studio.NET-Style Tear Off Panes - Part III

    This article discusses a framework that can be used to implement Visual Studio.NET-style Tear Off panes. The framework uses the commonly used MFC classes to achieve the functionality. This article is the third in the series.

    CSSplitter: Splitter with the Ability to Save/Restore Its Position

    Learn about a splitter control derived from CStatic for dialog controls and not only within a restricted splitter pane.

    Setting Extended Styles of Controls, Dialogs, Dialog Bars, and Property Pages at Runtime

    Set extended styles of controls, dialogs, dialog bars and property pages at runtime for DIALOG and DIALOGEX resources.

    CSplash—A Splash Window Class

    Learn to create a "splash" window at an application's startup.

    Visual Studio.NET Style Tear Off Panes - Part II

    Framework to build and use Visual Studio .NET-style Tear Off Panes

    A Snap Size Dialog Class

    A Snap Size Dialog Class

    Visual Studio.NET Style Tear Off Panes - Part I

    Framework to build and use Visual Studio .Net style Tear Off Panes

    Dynamic Creation of Thread-Separated Dialogs Having Only Its Class Name

    The article describes a way of creating class objects by naming its classes. This way permits you to create a new class object by calling a function or class method that receives as input parameters pointer to CRuntimeClass object. In general, it shows you how to design a mechanism that creates a user-selected dialog window in its own child thread.

    How to Determine Whether a Printer Supports Color

    Learn how to determine whether a printer supports color printing.

    Flexible Screen Designer

    The dynamic screen classes allow you to incorporate advanced screen functionality into your MFC applications. The fundamental difference of these classes are that they work with the actual resource in your executable—this means that users of your applications can alter screens that have been designed by you using the MFC resource editor—they can make changes at run time.

    Skins in a Dialog-Based Application

    Adding skins to a dialog-based application.

    Cool Color Selector Including Hue, Saturation, and Lumination

    This color selector helps to make selecting colors more efficient. This article contains full source code of the color selector and a demonstration application. (The demo project, source code, and illustration were updated.)

    Full-Screen Caption Bar

    Use this caption/title bar for applications that require something extra.

    Professional User Interface Suite

    Enable your software to be provided with a professional and user-friendly interface with this MFC extension library, Professional User Interface Suite. (The article and demo project were updated.)

    Making Any Application Transparent in Windows 2000/XP

    Explore how to turn any running application transparent in the same way as the layering features of Windows 2000 or Windows XP.

    Multi-Page Interface

    Create a complex user interface with many views, tabs, and splitters.

    A Line Picker

    Examine how to select the style, width, and color attributes for a CPen object from a dialog.

    Look Closer with QZoomView

    Build an extended CScrollView with added zooming capabilities. (The article and demo project/source code file were updated.)

    Creating a Multithreaded SDI Application

    How to create an application with multiple SDI windows (such as the new MS Word) by using the MFC framework with multithreading. (The article, demo, and source code were updated.

    Creating a Reusable Dialog Class without MFC

    Develop a reusable dialog class with flexible message handling without using MFC. (The article, source code, and EXEC file were updated.)

    Creating a Custom Color Selection Dialog

    Learn how to use a "complete" color selection dialog. This dialog is built using pure win32api (no MFC).

    Processing System Messages

    When running in a loop within a dialog box, the command buttons do not work. While other authors have shown how to use separate threads to run a modal dialog box, this article shows how to process the Message Loop within the same dialog by adding a simple function and making calls to it.

    CDialogSK, A Skinnable Dialog Class

    This article discusses the CDialogSK class, which extends the MFC CDialog. See how to add transparency to a dialog, how to add a bitmap to the background, how to set a style for the background, and more.

    A Splash Screen with Alpha Blending

    Have you ever thought about creating a splash screen that melts with the background using an Alpha channel together with the splash bitmap? This three-class implementation could help you do this. Includes explanations of Alpha Blending routines and GDI functions such as GetDIBits and SetDIBits. (The demo project was updated.)

    Creating Shaped Windows Using Regions with Win32

    Learn how to create a shaped window using a bitmap image file.

    Creating a Splitter Window in a Dialog Box in Three Easy Steps

    How to implement a CSplitterWnd into a CDialogBox in three easy steps without overriding any function or writing new classes.

    Creating a Dialog with a Variable Number of Buttons

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