Assistente de controle de ActiveX do MFC

An ActiveX control is a specific type of automation server; it is a reusable component. O aplicativo que hospeda o controle de ActiveX é o o cliente de automação desse controle. If your goal is to create such a reusable component, then use this wizard to create your control. Consulte Controles do MFC ActiveX para obter mais informações.

Como alternativa, você pode criar uma automação servidor MFC aplicativo usando o mfc Application Wizard.

An ActiveX control created with this wizard can have a user interface, or it can be invisible. Você pode indicar essa opção na As configurações de controle página do assistente. A timer control is an example of an ActiveX control that you would want to be invisible.

ActiveX controls can have a complex user interface. Some controls might be like encapsulated forms: a single control containing many fields, each a Windows control in its own right. For example, an auto parts object implemented as an MFC ActiveX control might present a form-like user interface through which users could read and edit the part number, part name, and other information. Consulte Controles do MFC ActiveX para obter mais informações.

Se você precisar criar um recipiente para os objetos ActiveX, consulte criar um recipiente de controle de ActiveX.

O programa de starter MFC inclui os arquivos de origem (CPP) de C++, os arquivos de recurso (. rc) e um arquivo de projeto (.vcxproj). The code generated in these starter files is based on MFC.

The following sample list shows tasks and types of enhancements for your ActiveX control:

Overview

This wizard page describes the current application settings for the MFC ActiveX control project you are creating. By default, the wizard creates a project as follows:

  • The default project generates no run-time license or help files. You can change these default settings on the Application Settings page. Only the selections you make on this page of the ActiveX Control Wizard are reflected on the Overview page.

  • The project includes a control class and a property page class, based on the name of the project. You can edit the names of your project and file names on the Control Names page.

  • The control is based on no existing Windows control, activates when it becomes visible, has a user interface, and includes an About dialog box. You can change these default settings on the Control Settings page.

Consulte também

Conceitos

Visual projetos C++

Outros recursos

Criar e gerenciar projetos visual C++

ATL Concepts