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 CodeGuru Developer Columns
Discover the concept of late binding—the work behind the scenes to realize the late binding mechanism. Sample code and examples are provided.
Explore how to perform basic serial port communication. Examples are in C# and VB.NET.
Explore how to create and use a Ubuntu virtual machine.