Notes on First Windows In Class
The Problem
Create a TWindow
project with Draw menu. That menu has a draw circle command.
Add an event handler for Left button double click
that draws a circle at the
point of the click.
Selected Code
The Circle Draw
TDC *tDC = new TClientDC(*this);
tDC->Ellipse(20,20,150,150);
delete tDC;
The Double Click Handler
TDC *tDC = new TClientDC(*this);
TPoint lowerRight=point.OffsetBy(100,100);
TPoint upperLeft = point.OffsetBy(-100,-100);
tDC->Ellipse(upperLeft,lowerRight);
delete tDC;
The Page Appearance