Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.79 KB

creating-the-dialog-resource.md

File metadata and controls

27 lines (18 loc) · 1.79 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Creating the Dialog Resource
Creating the Dialog Resource
11/04/2016
dialog resources
MFC dialog boxes [MFC], creating
dialog templates [MFC], creating dialog resource
templates [MFC], creating
resources [MFC], creating dialog boxes
MFC dialog boxes [MFC], dialog resource
0b83bd33-14d3-4611-8129-fccdae18053e

Creating the Dialog Resource

To design the dialog box and create the dialog resource, you use the dialog editor. In the dialog editor, you can:

  • Adjust the size and location your dialog box will have when it appears.

  • Drag various kinds of controls from a controls palette and drop them where you want them in the dialog box.

  • Position the controls with alignment buttons on the toolbar.

  • Test your dialog box by simulating the appearance and behavior it will have in your program. In Test mode, you can manipulate the dialog box's controls by typing text in text boxes, clicking pushbuttons, and so on.

When you finish, your dialog-template resource is stored in your application's resource script file. You can edit it later if needed. For a full description of how to create and edit dialog resources, see the dialog editor topics. This technique is also used to create the dialog-template resources for CFormView and CRecordView classes.

When the dialog box's appearance suits you, create a dialog class and map its messages, as discussed in Creating a Dialog Class with Code Wizards.

See also

Dialog Boxes
Working with Dialog Boxes in MFC