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.
Latest w-d Articles - Page 8
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.
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.)
Learn how to create a shaped window using a bitmap image file.
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.
How to implement a CSplitterWnd into a CDialogBox in three easy steps without overriding any function or writing new classes.
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
The Transactional File System (TxF), which allows access to an NTFS file system to be conducted in a transacted manner through extensions to the Windows SDK API. MFC 10, has been extended to support TxF and related technologies. This support allows existing MFC applications to be easily extended to support kernel transactions.
The original release of the .NET Framework included collections as .NET was introduced to the Microsoft programming world. The .NET Framework 2.0 introduced generics to complement the System.Collections namespace and provide a more efficient and well performing option. Read on to learn more...
Learn how to use a for loop to loop through all of the images found on a web page and save them via the DownloadFile method of the WebClient object.
SOLID principles form the base for writing good and clean object oriented code in C#. Learn about the S.O.L.I.D principles and explore C# coding samples for each.