Finally, got it all installed and working.
The first thing you should do is changing your code such that the program exits on pressing the esc button.
It exits now on a keypress... we don't want that.
Then you can use :
int ix, iy;
testWindow.GetMouseClick(ix,iy);
Next thing is to compare if ix and iy is within your red lil boxes (:th: got it working:th: ).
If it is, implement code that belongs to that particular red box.
It is really that simple. But next time better learn the basics of classes. How are you going to implement code for each of the boxes? One big long line of code?
Just a hint

.
- Val -