Share via


Add Resource Dialog Box

 

The latest version of this topic can be found at Add Resource Dialog Box.

Use this dialog box to add resources to a C++ Windows desktop application project.

Note

This information does not apply to resources in Windows Store apps. For more information about that, see Defining App Resources.

Resource Type
Specifies the kind of resource you want to create.

You can expand the cursor and dialog box resource categories to reveal additional resources. These resources are located in ...\Microsoft Visual Studio version\VC\VCResourceTemplates\<LCID>\mfc.rct. If you add .rct files, you must put them in this directory or you must specify an include path for them. The resources in those files then appear at the second level under the appropriate category. There is no preset limit to the number of .rct files you can add.

The resources shown at the top level in the tree control are the default resources that are provided by Visual Studio.

New
Creates a resource based on the type you have selected in the Resource Type box. The resource opens in the appropriate editor. For example, if you create a dialog resource, it opens in the dialog editor.

Import
Opens the Import dialog box in which you can navigate to a resource you'd want to import into your current project. You can import a bitmap, icon, cursor, HTML resource file, sound (.WAV) resource file, or custom resource file.

Custom
Opens the New Custom Resource dialog box in which you can create a custom resource. Custom resources can be edited in the Binary editor only.

Requirements

None

See Also

How to: Create a Resource