Skip to content

Commit b5f1c18

Browse files
authored
Merge pull request MicrosoftDocs#1702 from msebolt/resource-file-consolidation-pr18
resource file consolidation pr18
2 parents 488dd83 + d385ab7 commit b5f1c18

4 files changed

Lines changed: 29 additions & 45 deletions

‎.openpublishing.redirection.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7510,6 +7510,11 @@
75107510
"redirect_url": "/cpp/windows/creating-a-device-image-image-editor-for-icons",
75117511
"redirect_document_id": false
75127512
},
7513+
{
7514+
"source_path": "docs/windows/using-the-256-color-palette-image-editor-for-icons.md",
7515+
"redirect_url": "/cpp/windows/creating-a-256-color-icon-or-cursor-image-editor-for-icons",
7516+
"redirect_document_id": false
7517+
},
75137518
{
75147519
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
75157520
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

‎docs/windows/TOC.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@
124124
###### [Copying a Device Image (Image Editor for Icons)](copying-a-device-image-image-editor-for-icons.md)
125125
###### [Deleting a Device Image (Image Editor for Icons)](deleting-a-device-image-image-editor-for-icons.md)
126126
###### [Creating Transparent or Inverse Regions in Device Images (Image Editor for Icons)](creating-transparent-or-inverse-regions-in-device-images.md)
127-
###### [Creating a 256-Color Icon or Cursor (Image Editor for Icons)](creating-a-256-color-icon-or-cursor-image-editor-for-icons.md)
128-
####### [Using the 256-Color Palette (Image Editor for Icons)](using-the-256-color-palette-image-editor-for-icons.md)
127+
###### [Using the 256-Color Palette (Image Editor for Icons)](creating-a-256-color-icon-or-cursor-image-editor-for-icons.md)
129128
###### [Setting a Cursor's Hot Spot (Image Editor for Icons)](setting-a-cursor-s-hot-spot-image-editor-for-icons.md)
130129
##### [Accelerator Keys (Image Editor for Icons)](accelerator-keys-image-editor-for-icons.md)
131130
#### [Menu Editor](menu-editor.md)
Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,46 @@
11
---
2-
title: "Creating a 256-Color Icon or Cursor (Image Editor for Icons)"
2+
title: "Using the 256-Color Palette (Image Editor for Icons)"
33
ms.date: "11/04/2016"
4-
helpviewer_keywords: ["256-color palette", "cursors [C++], color", "colors [C++], icons", "colors [C++], cursors", "icons, color"]
4+
helpviewer_keywords: ["256-color palette", "cursors [C++], color", "colors [C++], icons", "colors [C++], cursors", "icons, color", "colors [C++], icons and cursors", "color palettes, 256-color", "palettes, 256-color"]
55
ms.assetid: 2738089b-4fd3-4c45-96ae-6a15e4c6b780
66
---
7-
# Creating a 256-Color Icon or Cursor (Image Editor for Icons)
7+
# Using the 256-Color Palette (Image Editor for Icons)
88

99
Using the **Image** editor, icons and cursors can be sized large (64 × 64) with a 256-color palette to choose from. After creating the resource, a device image style is selected.
1010

11-
### To create a 256-color icon or cursor
11+
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).
1212

13-
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.)
13+
## To create a 256-color icon or cursor
14+
15+
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.)
1416

1517
> [!NOTE]
1618
> 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).
1719
18-
2. In the [Insert Resource dialog box](../windows/add-resource-dialog-box.md), select **Icon** or **Cursor** and click **New**.
20+
1. In the [Insert Resource dialog box](../windows/add-resource-dialog-box.md), select **Icon** or **Cursor** and choose **New**.
21+
22+
1. On the **Image** menu, select **New Device Image**.
23+
24+
1. Select the 256-color image style you want.
25+
26+
## To choose a color from the 256-color palette for large icons
1927

20-
3. On the **Image** menu, click **New Device Image**.
28+
To draw with a selection from the 256-color palette, you need to select the colors from the **Colors** palette in the [Colors window](../windows/colors-window-image-editor-for-icons.md).
2129

22-
4. Select the 256-color image style you want.
30+
1. Select the large icon or cursor, or create a new large icon or cursor.
2331

24-
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).
32+
1. Choose a color from the 256 colors displayed in the **Colors** palette in the **Colors** window.
33+
34+
The color selected will become the current color in the **Colors** palette in the **Colors** window.
35+
36+
> [!NOTE]
37+
> The initial palette used for 256-color images matches the palette returned by the `CreateHalftonePalette` Windows API. All icons intended for the Windows shell should use this palette to prevent flicker during palette realization.
2538
2639
## Requirements
2740

2841
None
2942

3043
## See Also
3144

32-
[Using the 256-Color Palette](../windows/using-the-256-color-palette-image-editor-for-icons.md)<br/>
3345
[Accelerator Keys](../windows/accelerator-keys-image-editor-for-icons.md)<br/>
34-
[Icons and Cursors: Image Resources for Display Devices](../windows/icons-and-cursors-image-resources-for-display-devices-image-editor-for-icons.md)
46+
[Icons and Cursors: Image Resources for Display Devices](../windows/icons-and-cursors-image-resources-for-display-devices-image-editor-for-icons.md)

‎docs/windows/using-the-256-color-palette-image-editor-for-icons.md‎

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

0 commit comments

Comments
 (0)