Click to open or copy the CIRC1 project files.
CIRC1: The Circle control just after it is created with ControlWizard.
Click to open or copy the CIRC2 project files.
CIRC2: The Circle control after several properties and events have been added.
Click to open or copy the CIRC3 project files.
CIRC3: The completed Circle control. Demonstrates ActiveX control basics, including control painting, stock and custom properties, stock and custom events, use of colors and fonts, the stock Font property page, the default property page, and versioning.
CIRC is a simple example of an ActiveX Control. The CIRC sample has three subdirectories, CIRC1, CIRC2 and CIRC3, that correspond to steps in the Circle Application Tutorial. CIRC illustrates the following.
The CIRC1 sample demonstrates the following keywords:
AfxGetInstanceHandle; CDialog::DoModal; Ellipse; FillRect; GetStockObject; MAKELONG
The CIRC2 sample demonstrates the following keywords:
AfxGetInstanceHandle; CDC::Ellipse; CDC::SelectObject; CDC::SelectStockObject; CDialog::DoModal; Ellipse; FillRect; GetClientRect; GetDC; MAKELONG; RGB; ReleaseDC; SelectObject
The CIRC3 sample demonstrates the following keywords:
AfxGetInstanceHandle; CDC::Ellipse; CDC::SelectObject; CDC::SelectStockObject; CDialog::DoModal; CString::AllocSysString; CString::GetLength; Ellipse; ExtTextOut; FillRect; GetClientRect; GetDC; GetVersion; MAKELONG; RGB; ReleaseDC; SelectObject; SetBkMode; SetTextAlign; SetTextColor