Click here to Skip to main content
14,544,540 members
MFC

MFC

Great Reads

by Hans Dietrich
XQueue implements a shared-memory first-in first-out (FIFO) queue, based on memory-mapped files, that works on all versions of Windows.
by Paul Vickery
Code to add a message bar to virtually any existing Windows control.
by Hans Dietrich
This series of articles is a step-by-step guide to reading files stored in your program's resources. Along the way I will present some non-MFC classes to assist you in reading text, binary, zip, and even encrypted files that have been compiled into your program as resources.
by Paul M Watt
Guide to understanding how to create and use regions with the WIN32 SDK

Latest Articles

by Jovibor
This HexControl is an attempt to expand standard MFC functionality, because at the moment MFC doesn't provide support for such control.
by Apprieu (Apprieu)
How to generate a serial key with Crypto API MFC
by Ștefan-Mihai MOGA
You can use IntelliPort to transfer large files from a computer onto your portable computer using a serial port rather than going through the process of setting up your portable computer on a network.
by Hans
Just for fun, a Conway's Game of Life application with many features using MFC Direct2D classes

All Articles

Sort by Score

MFC 

24 Feb 2000
Len Holgate
A simplified method to enumerate a collection of objects.
14 Mar 2000
Tom Archer
A class to dynamically read data from any ODBC data source
28 Jul 2000
Len Holgate
Adding bookmark functionality is relatively easy and it enables our ADO recordset to be used with a greater number of data bound controls.
9 Jun 2000
James Spibey
An article discussing a Plug-in for Nullsoft Winamp which looks and behaves like the Winamp UI.
28 Dec 1999
Jorge Lodos
This article describes how to maintain the separate MRU list for each document type that is needed in some applications.
7 May 2002
Alboaie Sînicã
Adding more privacy to users of existing messengers (yahoo only at this stage)
25 Oct 2000
Jim Crafton
An Article describing working with the Visual Component Framework
6 Feb 2000
Stuart Carter
This article explains how to support file drag and drop in your CWnd-derived object
21 Jan 2002
Carlos Antollini
A set of classes that make it easy to work with Network Management.
29 Jan 2002
SimonS
Here's some simple JScript that returns the value part of a name-value querystring pair from inside an HTML page.
29 Nov 2004
peterchen
Do your users a favor - add snapping edges to MDI child windows (or anywhere else).
26 May 2006
Michael Dunn
A tutorial on writing a shell extension that can be used on the Send To menu.
27 Aug 2002
Nish Nishant
A wrapper class for SHFormatDrive (XP/2K only). Corrects some errors in KB article Q173688
15 Oct 2002
Andreas Saurwein
Helper class to set the owner of an NT security descriptor
19 Jul 2007
Hans Dietrich
This series of articles is a step-by-step guide to reading files stored in your program's resources. Along the way I will present some non-MFC classes to assist you in reading text, binary, zip, and even encrypted files that have been compiled into your program as resources.
12 Dec 2008
Iain Clarke, Warrior Programmer
A flexible easily overridable combo-box-alike control for choosing from a 2D array of options
6 May 2012
emranallan
Add your local inside windows local to be supported for unicode
19 Nov 2013
Julijan Sribar
Easily extensible owner-drawn combo box with items grouping and sorting
17 Jan 2012
mengxz
CScrollBarEx is a simple MFC control derived from CWnd, it can display scrollbar max, min, and current value
1 May 2002
James Lee
Now you can use MaskBlt on Windows 9X
18 Sep 2001
Braulio Dez
How to detect when the control looses its focus - the easy way.
4 Feb 2002
Joseph M. Newcomer
A control for generating colour gradients
24 May 2006
Michael Dunn
A tutorial on writing a shell extension that provides custom drag and drop functionality.
8 Apr 2002
Jens Scheidtmann
Have you ever searched for a nice way to select a subrange from an interval? This may be the solution for you.
7 Nov 2001
Migs
VB engine for the Sonork Instant Messenger
5 Mar 2002
Phil J Pearson
Shows how to integrate simple and easy Undo/Redo (by Keith Rule) into an application using the MFC Grid control (by Chris Maunder).
9 Sep 2002
Truong Pham Dang Khoa
A multilanguage control.
16 Jul 2002
Bartosz Bien
Command routing and UI updates for inactive views in a split frame.
11 Jul 2002
Pavel Kobyakov
A DevStudio add-in described provides two interesting IDE integration features: adding a new tab to VC WorkspaceView window and running an arbitrary process under IDE with output sent to "Build" tab of VC Output window.
5 Oct 2007
The Ultimate Toolbox
A selection of frequently asked questions submitted by users of the Ultimate Grid
10 May 2017
Petrov Vladimir
Former NeHe OpenGL Lessons adapted to MSVS-15 pro MFC in INICODE and the samples of the Joystick implementation
18 May 2012
emranallan
Server Application to remote your mobile device through wireless/wire connection not based on RAPI
20 Jun 2012
ThatsAlok
CWinThread with TWO-Way communication using window message
1 Oct 2009
Nishad S
A tool for capturing data from controls like TreeCtrl, ListCtrl, ComboBox, ListBox, etc.
14 Apr 2010
Derek Lakin
Change notification for dependency properties
28 Jul 2000
Len Holgate
The ATL OLE DB Provider templates appear to rely on the fact that your data is kept in a simple array, but that's not really the case at all!
16 Jan 2000
William E. Kempf
An article on extendable layout management classes.
26 Nov 2001
Davide Calabro
A collection of usefull icons contained into a DLL
7 Apr 2000
PJ Naughter
A collection of freeware MFC classes to encapsulate the SNTP protocol.
9 Jan 2000
Alexander Fedorov
A simple histogram control for displaying data
17 Mar 2000
Gerolf Reinwardt
A custom-drawn tree-list hybrid, with explanations on how the control was developed.
28 Aug 2001
Adrian Bacaianu
This article shows how to make one ATL COM component with crypt/decrypt functions and how to use it in ASP programs. It shows also how to register a component in MTS.
6 Feb 2001
Nic Oughton
Using the high level API to send and receive SOAP messages in MFC
16 Apr 2001
Igor Sukhov
The ATL and MFC versions of the class that implements a dialog for selecting users(computers) within the Windows Network.
13 Jan 2002
Lim Bio Liong
A System Tray Utility to precisely capture screenshots of Windows and Controls anywhere on the screen.
10 Nov 2002
Alexey
The ALXGrid Control Library is a set of classes for management of data as a table.
24 Aug 2002
Simon.W
Fixed a bug about Thread pool class submited by Sherwood Hu
11 Jul 2007
Giuseppe Marazzi
A small tip for implementing a fallback resources process with MFC that's useful for localization
14 Jul 2002
Mingming Lu
With this control, you can easily build up your own Poker games.
5 Aug 2016
Petrov Vladimir
Texture Mapping in OpenGL from any Image File in any format using Class CImage(just call the File Name).
12 Apr 2017
PJ Arends
This is an alternative for "An AutoRepeat Button Class"
11 Mar 2009
Jellow TK
This simple tool will add method-entry logs in source files.
4 Oct 2013
dchris_med
This is a sample project for "HTML Reader C++ Class Library"
22 May 2014
djc2032
A three-part series demonstrating how to develop an Oracle Call Interface (OCI) custom data source for Ultimate Grid
18 Dec 2012
Lars [Large] Werner
Windows has built inn support for a lot of keyboard languages, this class makes it possible to extract that info in an easy manner and present it to screen.
27 Jun 2016
Ben Aldhouse
How I stopped worrying and learned to love Direct2D.
18 Dec 2001
Davide Calabro
The reference control for MFC flat buttons with text and icons. Give your CE applications a professional look!
17 Jul 2001
John Roark
A Simple Skinning Library
11 Aug 2001
Scott Wenger
This is a small program that can extract email addresses from files that are not necessarily text files.
10 Mar 2002
Paul M Watt
Guide to understanding how to create and use regions with the WIN32 SDK
26 Nov 1999
Chris Maunder
Shows how to use text callbacks in list controls
6 May 2002
peterchen
An easy-to-use control to display bitmaps (stretch, scale, tile)
3 May 2000
Vasili Burdo
The library that helps to manage Shell ITEMIDLISTS
20 Apr 2002
Chris Losinger
A base class for a prefereneces dialog, similar to that used in Netscape
11 Aug 2000
Brian C Hart
Here we add a method to our DCOM-remoted object, and start on implementing its functionality.
8 May 2005
Brian C Hart
We build our new server and install it on the server machine.
3 Oct 2001
Antoine Megens
Yet Another Simple Help Dialog
9 May 2007
Sherin Iranimose
An article on launching and embeding .exe applications into a dialog-based application
9 Oct 2008
Paul Vickery
CEdit-derived Hyperlink control, so user can edit hyperlinks
8 Nov 2004
JaeWook Choi
An article on Mouse Gesture add-in for MS DevStudio 6.
9 Jun 2002
Chen Hao
How to control the dependancy on oleacc.dll in your Visual C++ .NET applications
1 Nov 2017
peterboulton
This article shows how to add new Ribbon themes to an MFC application built using the Visual Studio 'Feature Pack' (CMFCVisualManager) classes.
4 Jan 2020
_Flaviu
Switching between open documents in multi-document interface application
20 Mar 2009
SBJ
A Model-View-Controller Framework that integrates with the MFC Doc/View architecture
22 May 2014
djc2032
A three-part series demonstrating how to develop an Oracle Call Interface (OCI) custom data source for Ultimate Grid
14 Sep 2018
bkelly13
Goal: Describe how asynchronous or non-blocking TCP code works
20 Apr 2010
David Crow
This article is a brief discussion on how to use FindFirstPrinterChangeNotification
27 Dec 2015
Sotirios Diamantis
You have a problem with your app, and limited computer resources; this code will help you find the problem, by giving you the sequence of function calls that caused it.
26 Oct 2000
Massimo Colurcio
Explore the structure of tables (and views)
3 Mar 2000
PJ Naughter
Freeware MFC wrapper classes for Win32 Mailslots.
27 Dec 1999
Jason Troitsky
A CStatic class that gently fades text into view
6 Jun 2002
Ray Kinsella
How to use the Microsoft Mail API to insert messages into the Window CE Outbox.
17 Apr 2001
Xavier Dusart
Sample code on how to use tray icons and check Exchange mailbox.
28 Apr 2001
Dan Madden
An article showing you how to process (Outlook®) E-mail messages automatically by using an MFC dialog or NT service.
24 Aug 2007
The Ultimate Toolbox
The Ultimate Toolbox supports Office XP, Office 2003, and Classic application skins
5 Dec 2019
Petrov Vladimir
Compact and simply Vector Formula of the Intersection Point of Two Line Segments
5 Jan 2012
Pansion_chen
Ownerdraw listctrl with transparent background and custermized items image on WinCE.
7 Jan 2001
Marc Richarme
Yet another fully stacked control for displaying scrolling credits...
5 Apr 2001
Joseph M. Newcomer
How do you capture the bitmap of a window? This little download shows how, and places the bitmap on the clipboard.
15 May 2001
ljp
VC++ Standard Edition only has support for dynamically linked exes. This article shows you how to by-pass this restriction.
27 Mar 2001
Joseph M. Newcomer
GDI objects selected in a DC can't be deleted - even when you call DeleteObject. This handy class makes these potential leaks a thing of the past.
3 Mar 2000
PJ Naughter
A freeware MFC class to support access to CDDB servers.
19 Jun 2000
Mark C. Malburg
An Analog Meter Control for displaying real-time data
1 Feb 2000
Andrew JM Hall
A class that provides the ability to move and size controls at run-time
16 Jul 2002
soptest
How MS implements them and why they do not want you to see the source code of those functions.
24 Feb 2002
Kirill Panov
CDataGrid which was derived from CGridCtrl and used ADO for access to database.
10 Aug 2000
jerry0davis
How to display the "Find" window in a CWebBrowser control.
31 Mar 2001
Tili
This class creates from 1-9 segments of a single file which can be then desgmented.Useful for moving larger file on floppies.
14 Jun 2002
Neil Van Eps
An article on drawing Code 39 barcodes to the screen or to the clipboard
26 Jul 2002
Petr Stejskal
How to build a separate executable for each language version.
27 Jun 2002
Paul J. Weiss
C++ implementation of the Doomsday Rule to determine the weekday
5 Oct 2003
Lynn McGuire
Folder Tab control for Windows MFC (like MS Excel).
15 Jul 2002
Adrian Bacaianu
That article present a way to retrieve the GET-POST data from a form into an ISAPI extension.
2 Mar 2004
gUrM33T
How to subclass an edit control in MFC so that it accepts numeric values only
22 Mar 2005
Muhammad Sheraz Siddiqi
This article describes how to make an offline browser using Visual C++/Win32 APIs.
2 Apr 2019
Petrov Vladimir
Build up our own AVI editing application and explore some fun techniques using simple code additions
6 Mar 2012
Chandrakantt
Registering a custom URL protocol for invoking an application
22 May 2012
Mahfuzur Rahman.
Column based selection in rich edit control.
14 Mar 2000
Tom Archer
A class for Printing and Viewing MS Access Reports
31 Oct 2001
Farooque Khan
Demonstrates usage of NetShare APIs.
1 Feb 2002
Warren Gardner
Add bitmaps to your menus easily and with very little source code.
11 Jun 2002
Paul Vickery
Utility to make selected windows remain on-top of others
17 Jul 2002
Dave Matrix
How to draw/redraw a rectangle along the window rect, when the window is activated or deactivated.
20 Nov 2002
Obliterator
Uses the poorly documented SHChangeNotifyRegister function to receive notification upon shell events
31 Oct 2002
Justin Hallet
An example approach to solving the single instance application problem with command line argument passing.
3 Feb 2017
Satish Jagtap
This article is written in VC++ as utility to manage startup applications of Windows.
21 Sep 2017
Michael Haephrati
How to detect the currently used language regardless of the active application
20 Nov 2017
Petrov Vladimir
The alternative Quadrics in OpenGL MFC for your Own design and Universal Polyhedron Procedure.
1 Jun 2018
YangManWoo
This article describes how to create custom controls using strategy patterns.
28 Jul 2008
Roland Trainor
A class to facilitate user defined dialog and window control layouts.
23 Oct 2008
Paul Vickery
Code to add a message bar to virtually any existing Windows control.
13 Jul 2009
Hou Tianze
A CStatic derived class that wraps the cool FX effect by dswigger.
23 May 2018
Andreas Schoenle
How to use CrashRptEx, to avoid some of the pitfalls of crash reporting in MFC apps or if you want the ability to continue your application after a crash
26 Dec 2001
Chris Maunder
Some classes and utility functions for general computational geometry
3 Mar 2000
PJ Naughter
A freeware DDX routine for selecting a filename.
6 Feb 2000
Keith Rule
Create visually complex, yet programmatically simple, non-rectangular GUIs
15 Dec 1999
Kirk Stowell
This article presents a wrapper class for the pager control
3 Jun 2000
Chris Maunder, Fred Ackers
A new class that adds hyperlink support to the MFC Grid Control
12 Jan 2000
Henk Devos
Explains how to display the windows 'Pick Icon' dialog
10 Dec 2001
Yuriy Zaporozhets
Very primitive function that creates region from *.bmp files
11 Aug 2000
Brian C Hart
We look at connection points and set up the server's end of one. We'll also finish implementing our SayHello() method.
22 Aug 2001
Valters Vingolds
Article describes how to obtain IHTML interfaces to prrogrammatically scroll WebBrowser control from Visual C/C++.
20 May 2002
Jason Henderson
Draw and animate ASCII characters to a window using this COM object.
4 Sep 2002
Stephane Rodriguez.
This article demonstrates how to automate IE's Save As functionality
10 Jun 2002
Manish Hatwalne
An article explaining how to create a utility to manage Internet Explorer skin
18 Jul 2003
Ernest Laurentin
Introduction to Microsoft Script Hosting and Adding Macro Scripting language support to existing MFC Application
30 Sep 2002
HAMZADAYI
Custom CRulerWnd control
13 Jun 2002
Wictor Wilén
How to use the IDirectoryObject interface instead of using the IADs(IDispatch) objects
28 Sep 2002
Matthijs Hollemans
A shell extension to allow you to select files based on a wildcard search
17 Jan 2005
Hans Dietrich
XQueue implements a shared-memory first-in first-out (FIFO) queue, based on memory-mapped files, that works on all versions of Windows.
19 Dec 2016
Petrov Vladimir
Joystick Win32 and MFC Projects Templates ready to use
25 Feb 2018
Petrov Vladimir
Weiler-Atherton algorithm in MFC codes demo implementation
11 Mar 2018
Petrov Vladimir
Weiler-Atherton algorithm in 3D codes demo implementation
28 Jan 2010
Eugen Podsypalnikov
A semi-transparent selection rectangle
14 Sep 2013
The Ultimate Toolbox, metalogicsw.com
The Ultimate Grid is now Open Source
5 Jul 2006
Johan Rosengren
An UML editor with code-generation capabilities derived from CDiagramEditor.
12 Jun 2014
Michael Haephrati
How Target Eye's Auto updating mechanism allows a silent update of an application from identifying newer versions, downloading them and running them instead of the old one
10 Jun 2008
[d3m0n]
A Calendar UI extension component for the ToDoList, giving you a timeline view of your tasks
10 Jan 2013
Jerry.Wang
This wrapping class will try to use the latest version of MSXML in the machine, and it is easy because of using auto_ptr.
9 Jan 2019
steveb
Describes all aspects of MFC serialization mechanism
13 Jan 2004
Sergiy Lavrynenko of Foss Software, Inc.
MFC extension library enabling software to be provided with a professional UI
21 Apr 2004
Armen Hakobyan
Using SQL-DMO to shrink SQL Server transaction logs.
17 May 2000
Chris Maunder
A simple tutorial explaining how to set the width of a combo dropdown list so that all items are fully visible
31 Dec 2003
Michael Geddes
How Comet can help you create and use COM servers in 'real' C++, extending or replacing ATL.
24 Feb 2004
Rob Manderson
Part two of the logging service - the viewer
25 Aug 2007
The Ultimate Toolbox
Ultimate TCP-IP is now Open Source
25 Jun 2014
Darryl Bryk
Code is described for a multi-document interface (MDI) image processing application utilizing the CImage class in C++
2 Sep 2008
Hans Dietrich
XGroupBox is an MFC control that displays a flicker-free groupbox with text and/or icon. You can use this to display either a standard groupbox or a header-only groupbox.
28 Jan 2002
Matt Gullett
A custom CWnd derived control which simulates the functionality of the MS Outlook mini calendar control.
18 Jun 2002
Sven Wiegand
A class that enables you to easily retrieve a file's version information.
10 Jan 2005
Anna-Jayne Metcalfe
An application/add-in to organise and renumber resource symbol IDs
26 Oct 2002
Paolo Messina, George
How to make owner-draw buttons handle default state
26 Aug 2003
PJ Arends
A class that draws an image with various options - transparently, disabled or grayscale, centered on or stretched to fit a given rectangle.
27 Nov 2019
Marius Bancila
Chromium Embedded Framework (CEF) v3 to embed a Chromium browser in an MFC application
16 May 2000
Joseph M. Newcomer
Attaching and detaching MFC objects to and from Windows objects.
30 Jan 2000
Keith Rule
Easily add Undo/Redo to your CDocument/CView based applciation.
7 Apr 2005
Yves Tkaczyk
CTreePropSheetEx is an extension of CTreePropSheet offering new features such as resizing, skipping empty pages, and new property frames such as Office 2003 option sheet.
31 Jul 2006
Hans Dietrich
XSuperTooltip implements class for displaying super tooltips, which were introduced in Office 2007. The demo download includes super tooltip code generator, that makes it easy to add super tooltips to your application.
21 Jun 2004
Mustafa Demirhan
A set of classes used to send keystrokes to a selected window
23 Sep 2016
_Flaviu
A ListCtrl ComboBox control
7 Aug 2002
Shog9
Although sometimes useful, message boxes used to display information are often just annoying. This article describes a non-modal replacement.
12 Jul 2010
Borodenko Oleg
A control that allows you to create multiple areas with tabs that you can pull with the mouse and as a result change the configuration of these areas.
9 Nov 2002
Nic Wilson
An article on the Digital Display Control
6 Dec 2002
Alvaro Mendez
Class with static functions and nested classes to make working with CWnd-derived objects easier
14 Jun 2001
Joseph M. Newcomer
An introduction to using Semaphores
26 Oct 2002
Jim Hawkins
Simple Class to add Snap-to-Grid capability to a Windows drawing program.
3 Mar 2000
PJ Naughter
An MFC class to implement single instance apps.
19 Aug 2003
Greg Ellis
Shows how to customize the Microsoft WebBrowser control in a dialog based app to allow custom context menus, message boxes, windows, modal dialogs and C++ function calls from JavaScript to your application using window.external.
15 Apr 2003
tbw
Formula-editor for editing and exporting mathematical content
15 Jun 2004
Paolo Messina
A set of classes to ease the development of resizable windows with MFC
25 Jun 2002
Adrian Bacaianu
This article presents a utility that lets you retrieve raw information from web servers using HTTP's GET and POST commands.
30 Oct 2016
Shao Voon Wong
Prototype SIMD vectorized code effortlessly.
30 Jan 2000
Andrei Stcherbatchenko
A set of classes that provide an expandable framework for the syntax coloring text editor.
11 Aug 2008
Darren Sessions
The Style Toolkit allows you to modernize the look of your programs using gradients, transparency, PNG images, and more.
13 Sep 2009
Johann Anhofer
The goal of this article is to describe a more or less generic way to access .NET managed objects from a native C++ application.
1 Jul 2003
Davide Calabro
A GDI+ cylinder progress control
12 Sep 2006
Geometros
A SolidGraph CAD system source code.
29 Jan 2003
Joel Holdsworth
A pair of classes for rendering and editing colourful washes
3 Mar 2000
PJ Naughter
Implements a tree control similar to the left hand side of Windows Explorer.
29 Sep 2010
Mathias Tunared
A Combobox in which the user can resize the drop window. Can be standard style or flat style.
13 Feb 2012
Gary R. Wheeler
The SimpleBrowser class makes using the WebBrowser control easier in your MFC applications.
16 Jul 2001
Joseph M. Newcomer
Learn about the issues and differences between Debug and Release builds.
7 Sep 2011
Frédéric Pailloux
Nice 7/16/Matric Segment LCD Control derived from CStatic and using GDI+ library
11 Oct 2003
.dan.g.
A self-contained, user-extensible, application-wide skinning architecture for Windows controls.
1 Nov 2004
Achilleas Margaritis
Description of the library AGM::LibReflection.