O'Reilly logo

D Web Development by Kai Nacke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Win32 GUI application

Due to the Win32 API, a Windows GUI application looks different from the other example applications in this book. If you are new to this topic and want to know more about it, then you should read Programming Windows, Fifth Edition, by Charles Petzold, Microsoft Press. You can find the book at http://www.informit.com/store/programming-windows-9780735692633.

The example application utilizes two fibers to draw rectangles and ellipses in two parts of the window screen. Due to the fiber-based approach, this is easy. The alternative is to use a timer event or separate threads, but this requires more coding. The Windows GUI application that you will create now looks as follows:

There is no special template for Win32 applications ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required