Controls: Overview

How Do IDetailsSample

Controls are interactive objects that you place in dialog boxes or other windows to carry out user actions. The controls that you can use or create with Visual C++ include:

  • Windows common controls, including those introduced with Windows 95.

  • Additional controls available with MFC, such as bitmap buttons.

  • ActiveX controls that you create yourself or that you obtain from control suppliers.

  • Owner-drawn controls, for which you supply code for drawing the control and for interacting with it.

MFC supplies classes for manipulating Windows common controls, or you can use the Windows API functions for that purpose. The Visual C++ dialog editor lets you add these controls to your dialog boxes.

ActiveX controls are based on a programming model that lets you develop any sort of control you need, such as grid controls or data access controls. Based on the Common Object Model (COM), these controls are binary objects usable in any ActiveX control container, including pages on the Internet’s World Wide Web and containers developed with Visual C++ and Visual Basic.

What do you want to do?