Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.4 KB

adding-an-mfc-class.md

File metadata and controls

24 lines (18 loc) · 1.4 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Adding an MFC Class
Adding an MFC Class
09/06/2019
vc.codewiz.classes.adding.mfc
classes [MFC], adding MFC
MFC, adding classes
9a96b67f-40bf-43d4-8872-2f8dfc5404f1

Adding an MFC Class

To add classes derived from Microsoft Foundation Class (MFC) library classes to your project, use the Add Class button in Class Wizard. Specify the name of the new class, select the base class, and select the ID of the dialog box with which it is associated (if any). The wizard creates a header file and an implementation file and adds them to your project.

Note

You can add MFC classes to an ATL COM application if you initially created the application with MFC support. You can also add MFC classes to Win32 projects that have MFC support.

To add an MFC class to your project

From Class View, right-click the project name. Click Class Wizard and then click Add Class to open the Add MFC Class dialog box. Use Class Wizard to add message handlers or new methods.

See also

Adding Functionality with Code Wizards
Adding a Class
Class Overview