This documentation is archived and is not being maintained.

Defining Member Variables for Dialog Controls

To define a member variable for any dialog box control except buttons, you can use the following method.


This article applies only to dialog controls within an MFC project. ATL projects should use the New Windows Messages and Event Handlers dialog box.

To define a member variable for a (non-button) dialog box control

  1. In the Dialog editor, select a control.

  2. While pressing the CTRL key, double-click the dialog box control.

    The Add Member Variable wizard appears.

  3. Type the appropriate information in the Add Member Variable wizard. For more information, see Dialog Data Exchange.

  4. Click OK to return to the Dialog editor.


    To jump from any dialog box control to its existing handler, double-click the control.

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.