Chapter 2. Hello, Small World!
This chapter introduces Small Windows by presenting the following two small applications:
- The first application writes "Hello, Small Windows!" in a window
- The second application handles circles of different colors in a document window
Hello, Small Windows!
In The C Programming Language by Brian Kernighan and Dennis Richie, the hello-world example was introduced. It was a small program that wrote "hello, world" on the screen. In this section, we shall write a similar program for Small Windows.
In regular C++, the execution of the application starts with the main
function. In Small Windows, however, main
is hidden in the framework and has been replaced by MainWindow
, whose task is to define the application name and create ...
Get C++ Windows Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.