You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,12 +13,10 @@ For symbols associated with a single resource, you can also use the **Properties
13
13
14
14
Normally all symbol definitions are saved in `Resource.h`. However, you may need to change this include filename so that you can, for example, work with more than one resource file in the same directory.
15
15
16
-
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*.
17
-
18
16
> [!NOTE]
19
17
> If your project doesn't already contain an .rc file, see [Creating a New Resource Script File](../windows/how-to-create-a-resource-script-file.md).
20
18
21
-
## Symbol name restrictions
19
+
## Symbol Name Restrictions
22
20
23
21
The restrictions on symbol names are as follows:
24
22
@@ -56,7 +54,7 @@ Symbol names have descriptive prefixes that indicate the kind of resource or obj
56
54
57
55
You can use the [Resource Symbols dialog box](../windows/resource-symbols-dialog-box.md) to change the names of symbols not currently assigned to a resource.
58
56
59
-
## Symbol value restrictions
57
+
## Symbol Value Restrictions
60
58
61
59
A symbol value can be any integer expressed in the normal manner for #define preprocessor directives. Here are some examples of symbol values:
62
60
@@ -105,7 +103,7 @@ For more information on number ranges, see [TN023: Standard MFC Resources](../mf
105
103
106
104
The new value is stored in the symbol header file the next time you save the project. Only the symbol name remains visible in the ID box; the equal sign and value aren't displayed after they're validated.
107
105
108
-
## Change or delete unassigned symbols
106
+
## Change or Delete Symbols
109
107
110
108
While in the [Resource Symbols dialog box](../windows/resource-symbols-dialog-box.md), you can edit or delete existing symbols that aren't already assigned to a resource or object.
111
109
@@ -125,7 +123,7 @@ In the [Resource Symbols dialog box](../windows/resource-symbols-dialog-box.md),
125
123
> [!NOTE]
126
124
> Before deleting an unused symbol in a resource file, make sure it is not used elsewhere in the program or by resource files included at compile time.
127
125
128
-
## Include shared (read-only) or calculated symbols
126
+
## Include Symbols
129
127
130
128
The first time the development environment reads a resource file created by another application, it marks all included header files as read-only. Though you can use the [Resource Includes dialog box](../windows/resource-includes-dialog-box.md) to add additional read-only symbol header files.
131
129
@@ -178,8 +176,8 @@ The environment will correctly interpret these calculated symbols as long as:
|**Name**|Displays the name of the symbol. For more information, see [Symbol Name Restrictions](../windows/symbol-name-restrictions.md).|
19
19
|**Value**|Displays the numeric value of the symbol. For more information, see [Symbol Value Restrictions](../windows/symbol-value-restrictions.md).|
20
20
|**In Use**|When selected, specifies that the symbol is being used by one or more resources. The resource or resources are listed in the Used by box.|
@@ -24,9 +24,9 @@ The dialog box contains the following properties:
24
24
|**Change**|Opens the **Change Symbol** dialog box, which allows you to change the name or value of a symbol. If the symbol is for a control or resource in use, the symbol can be changed only from the corresponding resource editor. For more information, see [Changing Unassigned Symbols](../windows/changing-unassigned-symbols.md).|
25
25
|**View Use**|Opens the resource that contains the symbol in the corresponding resource editor.|
26
26
27
-
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*.
27
+
## Create Symbols
28
28
29
-
## To create a new symbol
29
+
###To create a new symbol
30
30
31
31
1. In the **Resource Symbols** dialog box, choose **New**.
32
32
@@ -39,7 +39,7 @@ For information on adding resources to managed projects, see [Resources in Deskt
39
39
> [!NOTE]
40
40
> If you type a symbol name that already exists, a message box appears stating that a symbol with that name is already defined. You cannot define two or more symbols with the same name, but you can define different symbols with the same numeric value. For more information, see [Symbol Name Restrictions](../windows/symbol-name-restrictions.md) and [Symbol Value Restrictions](../windows/symbol-value-restrictions.md).
41
41
42
-
## To view resource symbols
42
+
###To view resource symbols
43
43
44
44
1. In [Resource View](../windows/resource-view-window.md), right-click your .rc file.
45
45
@@ -51,11 +51,11 @@ For information on adding resources to managed projects, see [Resources in Deskt
51
51
> [!NOTE]
52
52
> To see predefined symbols, check the **Show read-only symbols** check box.
53
53
54
-
## To open the resource editor for a given symbol
54
+
###To open the resource editor for a given symbol
55
55
56
56
When you're browsing symbols in the **Resource Symbols**, you may want more information on how a particular symbol is used. The **View Use** button provides a quick way to get this information.
57
57
58
-
### To move to the resource editor where a symbol is being used
58
+
####To move to the resource editor where a symbol is being used
59
59
60
60
1. Select a symbol in the **Name** box of the **Resource Symbols** dialog box.
61
61
@@ -69,7 +69,8 @@ When you're browsing symbols in the **Resource Symbols**, you may want more info
A symbol is a resource identifier (ID) that consists of two parts: a text string (symbol name) mapped to an integer value (symbol value). For example:
11
11
@@ -24,34 +24,18 @@ When you create a new resource or resource object, the [resource editors](../win
24
24
25
25
As your application grows in size and sophistication, so does its number of resources and symbols. Tracking large numbers of symbols scattered throughout several files can be difficult. The [Resource Symbols dialog box](../windows/resource-symbols-dialog-box.md) simplifies symbol management by offering a central tool through which you can:
-[View Predefined Symbol IDs](../windows/predefined-symbol-ids.md)
46
32
47
-
For information on adding resources to managed projects, please see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
48
-
49
33
## Requirements
50
34
51
35
Win32
52
36
53
37
## See Also
54
38
55
-
[How to: Search for Symbols in Resources](../windows/how-to-search-for-symbols-in-resources.md)<br/>
0 commit comments