Blocks32: Demonstrates CRectTracker Class
ID: Q141888
|
The information in this article applies to:
-
The Microsoft Foundation Classes (MFC), used with:
-
Microsoft Visual C++, 32-bit Editions, version 4.0
SUMMARY
BLOCKS32 is a sample that demonstrates CRectTracker class. The user of the
BLOCKS32 sample can create rectangle, ellipse, and rounded rectangle
graphical objects. Once the objects are created, the mouse can be used to
manipulate the objects by changing their size or position on the screen.
The user can save to a disk file the state of objects in the document for
use in another session.
The following files are available for download from the Microsoft
Download Center. Click the file names below to download the files:
Blocks32.exe
For more information about how to download files from the Microsoft
Download Center, please visit the Download Center at the following Web
address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.
MORE INFORMATION
BLOCKS32 demonstrates the following:
- Deriving a class from the CObject class
- Using virtual functions with user-defined classes
- Maintaining a list of classes
- Creating static data and static member functions in a class
- Using the serialization feature of the CObject class to save
classes to and read classes from a disk file
- Using CRectTracker class
BLOCKS32 uses the following MFC classes: CArchive, CBrush, CClientDC,
CDC, CFile, CFrameWnd, CPaintDC, CPen, CPoint, CRect, CWinApp, and
CRectTracker.
Additional query words:
Keywords : kbcode kbfile kbsample kbui kbMFC KbUIDesign kbVC
Version : winnt:4.0
Platform : winnt
Issue type :
|