Application Shows Microsoft Foundation Classes

ID: Q85283

3.10 WINDOWS kbprg kbfile
The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) 3.1


SUMMARY

BLOCKS is a file in the Microsoft Software Library 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 files are available for download from the Microsoft Download Center. Click the file names below to download the files:


Blocks.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.

Additional query words: 3.10 softlib BLOCKS.EXE kbDSupport s_mfc

Keywords : kbfile kbWinOS310 kbDSupport kbSDKWin16
Version : WINDOWS:3.1
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.