Dela via


Dialog Editor

The Dialog editor allows you to create or edit dialog box resources. You open the dialog editor by double-clicking on a dialog’s .rc file in the Resource View window (View | Resource View). Note that Resource View is not available in Express editions.

One of the first steps in making a new dialog box (or dialog box template) is adding controls to the dialog box. In the Dialog editor, you can arrange controls to fit a certain size, shape, or alignment, or you can move them around to work within the dialog box. It's also easy to delete a control.

You can store a dialog box as a template so you can reuse it. You can also easily switch between designing the dialog box and editing the code that implements it.

It's also possible to edit properties of single or multiple controls in the Dialog editor. You can change the tab order, that is, the order in which controls gain focus when the TAB key is pressed, or you can define an access key (a key combination) that allows users to choose a control using the keyboard. For a list of preset access keys, see Accelerator Keys for the Dialog Editor.

The Dialog editor also allows you to use custom controls, including ActiveX controls. In addition, you can edit a form view, Record Views, or Dialog Bars.

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

Reference

Resource Editors

Dialog Box Controls and Variable Types

Resources

Concepts

Controls (MFC)

Control Classes

Dialog Box Classes