Skip to content

Commit 488dd83

Browse files
authored
Merge pull request MicrosoftDocs#1700 from msebolt/resource-file-consolidation-pr17
resource file consolidation pr17
2 parents 1d28007 + 74733a7 commit 488dd83

6 files changed

Lines changed: 67 additions & 107 deletions

‎.openpublishing.redirection.json‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7495,6 +7495,21 @@
74957495
"redirect_url": "/cpp/windows/colors-window-image-editor-for-icons",
74967496
"redirect_document_id": false
74977497
},
7498+
{
7499+
"source_path": "docs/windows/new-device-image-type-dialog-box-image-editor-for-icons.md",
7500+
"redirect_url": "/cpp/windows/creating-a-device-image-image-editor-for-icons",
7501+
"redirect_document_id": false
7502+
},
7503+
{
7504+
"source_path": "docs/windows/custom-image-dialog-box-image-editor-for-icons.md",
7505+
"redirect_url": "/cpp/windows/creating-a-device-image-image-editor-for-icons",
7506+
"redirect_document_id": false
7507+
},
7508+
{
7509+
"source_path": "docs/windows/open-device-image-dialog-box-image-editor-for-icons.md",
7510+
"redirect_url": "/cpp/windows/creating-a-device-image-image-editor-for-icons",
7511+
"redirect_document_id": false
7512+
},
74987513
{
74997514
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
75007515
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

‎docs/windows/TOC.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@
120120
###### [Colors Window (Image Editor for Icons)](colors-window-image-editor-for-icons.md)
121121
##### [Icons and Cursors: Image Resources for Display Devices (Image Editor for Icons)](icons-and-cursors-image-resources-for-display-devices-image-editor-for-icons.md)
122122
###### [Creating a Device Image (Image Editor for Icons)](creating-a-device-image-image-editor-for-icons.md)
123-
####### [New <Device> Image Type Dialog Box (Image Editor for Icons)](new-device-image-type-dialog-box-image-editor-for-icons.md)
124-
######## [Custom Image Dialog Box (Image Editor for Icons)](custom-image-dialog-box-image-editor-for-icons.md)
125-
####### [Open <Device> Image Dialog Box (Image Editor for Icons)](open-device-image-dialog-box-image-editor-for-icons.md)
126123
###### [Adding an Image for a Different Display Device (Image Editor for Icons)](adding-an-image-for-a-different-display-device-image-editor-for-icons.md)
127124
###### [Copying a Device Image (Image Editor for Icons)](copying-a-device-image-image-editor-for-icons.md)
128125
###### [Deleting a Device Image (Image Editor for Icons)](deleting-a-device-image-image-editor-for-icons.md)
Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,68 @@
11
---
22
title: "Creating a Device Image (Image Editor for Icons)"
33
ms.date: "11/04/2016"
4-
f1_keywords: ["vc.editors.icon"]
5-
helpviewer_keywords: ["cursors [C++], creating", "icons [C++], creating", "display devices [C++], creating image", "images [C++], creating for display devices", "icons [C++], inserting"]
4+
f1_keywords: ["vc.editors.icon", "vc.editors.newimagetype", "vc.editors.customimage", "vc.editors.opendeviceimage"]
5+
helpviewer_keywords: ["cursors [C++], creating", "icons [C++], creating", "display devices [C++], creating image", "images [C++], creating for display devices", "icons [C++], inserting", "New <Device> Image Type dialog box [C++]", "Custom Image dialog box [C++]", "Open <Device> Image dialog box [C++]"]
66
ms.assetid: 5a536928-32df-4ace-beb1-1521ce3b871f
77
---
88
# Creating a Device Image (Image Editor for Icons)
99

10-
When you create a new icon or cursor resource, the **Image** editor first creates an image in a specific style (32 × 32, 16 colors for icons and 32 × 32, Monochrome for cursors). You can then add images in different sizes and styles to the initial icon or cursor and edit each additional image, as needed, for the different display devices. You can also edit an image by performing a cut-and-paste operation from an existing image type or from a bitmap created in a graphics program.
10+
When you create a new icon or cursor resource, the **Image** editor first creates an image in a specific style (32 × 32, 16 colors for icons and 32 × 32, Monochrome for cursors). You can then add images in different sizes and styles to the initial icon or cursor and edit each additional image, as needed, for the different display devices. You can also edit an image by using a cut-and-paste operation from an existing image type or from a bitmap created in a graphics program.
1111

1212
When you open the icon or cursor resource in the [Image editor](../windows/image-editor-for-icons.md), the image most closely matching the current display device is opened by default.
1313

14-
### To create a new icon or cursor
14+
For information on adding resources to managed projects, 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).
1515

16-
1. In [Resource View](../windows/resource-view-window.md), right-click your .rc file, then choose **Insert Resource** from the shortcut menu. (If you already have an existing image resource in your .rc file, such as a cursor, you can simply right-click the **Cursor** folder and select **Insert Cursor** from the shortcut menu.)
16+
## New &lt;Device&gt; Image Type dialog box
17+
18+
The **New &lt;Device&gt; Image Type** dialog box enables you to create a new device image of a specified type. To open the **New \<Device> Image** dialog box, select **New Image Type** on the **Image** menu. The following properties included are **Target Image Type** and **Custom**.
19+
20+
### Target Image Type
21+
22+
Lists the available image types. Select the image type you want to open:
23+
24+
||||
25+
|-|-|-|
26+
|- 16 x 16, 16 colors|- 48 x 48, 16 colors|- 96 x 96, 16 colors|
27+
|- 16 x 16, 256 colors|- 48 x 48, 256 colors|- 96 x 96, 256 colors|
28+
|- 16 x 16, Monochrome|- 48 x 48, Monochrome|- 96 x 96, Monochrome|
29+
|- 32 x 32, 16 colors|- 64 x 64, 16 colors||
30+
|- 32 x 32, 256 colors|- 64 x 64, 256 colors||
31+
|- 32 x 32, Monochrome|- 64 x 64, Monochrome||
32+
33+
> [!NOTE]
34+
> Any existing images will not be displayed in this list.
35+
36+
### Custom
37+
38+
Opens the **Custom Image** dialog box in which you can create a new image with a custom size and number of colors.
39+
40+
The **Custom Image** dialog box enables you to create a new image with a custom size and number of colors. The following properties included are:
41+
42+
|Property|Description|
43+
|---|---|
44+
|**Width**|Provides a space for you to enter the width of the custom image in pixels (1 - 512, limit of 2048).|
45+
|**Height**|Provides a space for you to enter the height for the custom image in pixels (1 - 512, limit of 2048).|
46+
|**Colors**|Provides a space for you to choose the number of colors for the custom image: 2, 16, or 256.|
47+
48+
## Open &lt;Device&gt; Image dialog box
49+
50+
Use the **Open &lt;Device&gt; Image** dialog box to open device images in C++ projects. It lists existing device images in the current resource (images that are part of the current resource). The following property included is:
51+
52+
|Property|Description|
53+
|---|---|
54+
|**Current Images**|Lists the images included in the resource. Select the image type you want to open.|
55+
56+
## To create a new icon or cursor
57+
58+
1. In [Resource View](../windows/resource-view-window.md), right-click your .rc file, then choose **Insert Resource** from the shortcut menu. (If you already have an existing image resource in your .rc file, such as a cursor, you can right-click the **Cursor** folder and select **Insert Cursor** from the shortcut menu.)
1759

1860
> [!NOTE]
1961
> If your project doesn't already contain an .rc file, please see [Creating a New Resource Script File](../windows/how-to-create-a-resource-script-file.md).
2062
21-
2. In the [Insert Resource dialog box](../windows/add-resource-dialog-box.md), select **Icon** or **Cursor** and click **New**. For icons, this creates an icon resource with a 32 × 32, 16-color icon. For cursors, a 32 × 32, Monochrome (2-color) image is created.
63+
1. In the [Insert Resource dialog box](../windows/add-resource-dialog-box.md), select **Icon** or **Cursor** and choose **New**. For icons, this action creates an icon resource with a 32 × 32, 16-color icon. For cursors, a 32 × 32, Monochrome (2-color) image is created.
2264

23-
If a plus sign (**+**) appears next to the image resource type in the **Insert Resource** dialog box, it means that toolbar templates are available. Click the plus sign to expand the list of templates, select a template, and click **New**.
24-
25-
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).
65+
If a plus sign (**+**) appears next to the image resource type in the **Insert Resource** dialog box, it means that toolbar templates are available. Select the plus sign to expand the list of templates, select a template, and choose **New**.
2666

2767
## Requirements
2868

@@ -32,4 +72,6 @@ None
3272

3373
[Icons and Cursors: Image Resources for Display Devices](../windows/icons-and-cursors-image-resources-for-display-devices-image-editor-for-icons.md)<br/>
3474
[Accelerator Keys](../windows/accelerator-keys-image-editor-for-icons.md)<br/>
35-
[Icons and Cursors: Image Resources for Display Devices](../windows/icons-and-cursors-image-resources-for-display-devices-image-editor-for-icons.md)
75+
[Icons and Cursors: Image Resources for Display Devices](../windows/icons-and-cursors-image-resources-for-display-devices-image-editor-for-icons.md)<br/>
76+
[Image Menu](../windows/image-menu-image-editor-for-icons.md)<br/>
77+
[Image Editor for Icons](../windows/image-editor-for-icons.md)<br/>

‎docs/windows/custom-image-dialog-box-image-editor-for-icons.md‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎docs/windows/new-device-image-type-dialog-box-image-editor-for-icons.md‎

Lines changed: 0 additions & 40 deletions
This file was deleted.

‎docs/windows/open-device-image-dialog-box-image-editor-for-icons.md‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)