Share via


Dialog Boxes: Overview

How Do IDetails

Dialog boxes are windowsused to display status information or to obtain information from the user. The user uses dialog boxes to have a “dialog” with your program. Dialog boxes contain controls, including:

  • Windows common controls such as edit boxes, pushbuttons, list boxes, combo boxes, tree controls, list controls, and progress indicators.

  • ActiveX controls.

  • Owner-drawn controls: controls that you are responsible for drawing in the dialog box.

Most dialog boxes are modal. The user can interact only with the dialog box while the box is open. But it is possible to create modeless dialog boxes, which let users work with other windows while the dialog box is open. MFC supports both kinds of dialog box with class . The controls are arranged and managed using a dialog-template resource, created with the .

Property sheets, also known as tab dialog boxes, are dialog boxes that contain “pages” of distinct dialog-box controls. Each page has a file folder “tab” at the top. Clicking on a tab brings that page to the front of the dialog box.

What do you want to do?