Skip to content

Commit 31395ee

Browse files
Merge pull request #4903 from TylerMSFT/github4440
Github4440
2 parents a426e91 + 51005e7 commit 31395ee

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

docs/ide/adding-a-class-from-an-activex-control-visual-cpp.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
---
22
description: "Learn more about: Add a class from an ActiveX control"
33
title: "Add a class from an ActiveX control"
4-
ms.date: "03/01/2022"
4+
ms.date: 04/28/2023
55
f1_keywords: ["vc.codewiz.class.axcontrol"]
66
helpviewer_keywords: ["ActiveX controls [C++], adding classes", "classes [C++], creating", "ActiveX Control Wizard", "add class from ActiveX control wizard [C++]"]
7-
ms.assetid: 729fcb37-54b8-44d5-9b4e-50bb16e0eea4
87
ms.custom: devdivchpfy22
98
---
109
# Add a class from an ActiveX control
1110

12-
Use this wizard to create an MFC class from an interface in an available ActiveX control. You can add an MFC class to an [MFC application](../mfc/reference/creating-an-mfc-application.md), an [MFC DLL](../mfc/reference/creating-an-mfc-dll-project.md), or an [MFC ActiveX control](../mfc/reference/creating-an-mfc-activex-control.md).
11+
Use this wizard to create an MFC class from an interface in an available ActiveX control. For this wizard to be available, you must have Visual Studio 2019 or later, and be in one of the following project types: [MFC application](../mfc/reference/creating-an-mfc-application.md), [MFC DLL](../mfc/reference/creating-an-mfc-dll-project.md), or [MFC ActiveX control](../mfc/reference/creating-an-mfc-activex-control.md).
1312

1413
> [!NOTE]
1514
> You don't need to create your MFC project with Automation enabled to add a class from an ActiveX control.
@@ -26,14 +25,10 @@ An ActiveX control is a reusable software component based on the Component Objec
2625

2726
In the wizard, you can add more than one interface in an ActiveX control. You can also create classes from more than one ActiveX control in a single wizard session.
2827

29-
You can add classes from ActiveX controls registered in your system, or you can add classes from ActiveX controls located in type library files (.tlb, .olb, .dll, .ocx, or .exe) without first registering them in your system. For more information about registering ActiveX controls, see [Registering OLE controls](../mfc/reference/registering-ole-controls.md).
28+
You can add classes from ActiveX controls registered in your system, or you can add classes from ActiveX controls located in type library files (`.tlb`, `.olb`, `.dll`, `.ocx`, or `.exe`) without first registering them in your system. For more information about registering ActiveX controls, see [Registering OLE controls](../mfc/reference/registering-ole-controls.md).
3029

3130
The wizard creates an MFC class, derived from [CWnd](../mfc/reference/cwnd-class.md) or from [COleDispatchDriver](../mfc/reference/coledispatchdriver-class.md), for each interface you add from the selected ActiveX control.
3231

33-
## In this section
34-
35-
- [Add class from ActiveX control wizard](#add-class-from-activex-control-wizard)
36-
3732
## Add class from ActiveX control wizard
3833

3934
Use this wizard to add an MFC class from an available ActiveX control. The wizard creates a class for each interface you add from the selected ActiveX control.

0 commit comments

Comments
 (0)