Application Shows Microsoft Foundation Classes (85283)



The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) 3.1

This article was previously published under Q85283
3.10 WINDOWS kbprg kbfile

SUMMARY

BLOCKS is a file in the Microsoft Download Center that demonstrates using the Microsoft Foundation Classes (MFC). The user of the BLOCKS 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 BLOCKS window for use in another session.

The BLOCKS sample illustrates the structure of an MFC application. It 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
BLOCKS demonstrates the following MFC classes: CArchive, CBrush, CClientDC, CDC, CFile, CFrameWnd, CPaintDC, CPen, CPoint, CRect, and CWinApp.

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

Modification Type:MinorLast Reviewed:2/14/2005
Keywords:kbdownload kbdownload kbfile kbinfo KB85283 kbAudDeveloper