Home Step1 Step2 Step3 Step4 Step5
So you want to be a programmer... Part 4
Making a Great Circle Map program for Windows.

Draw (and scroll) the screen!

What would Windows be without some graphical stuff!

Here we will add another window. Remember that all graphical elements in windows ARE windows by themselves! This window will be the "Client" part of our application (The white part). The client is larger than the client area so we need scrollbars and a fancy painting function that read the position of the scrollbars and copy the appropriate part of the picture to the screen!

I will add some highlights and explanations later. Guess you wanted some graphical stuff to play with, so here it is!

The finished result will look like this:

Source is here.

Suggestions are welcome! Please email me.
The code is probably not perfect, might have some memory leaks, might crash your computer.
Compiling and running this code is done at your own risc!

In the next step you will see a map! At last :-)

Step 3 Step5