Skip to content

Commit 192906e

Browse files
authored
Merge pull request #1682 from msebolt/resource-file-consolidation-pr3
resource file consolidation pr3
2 parents e5ad8f9 + 33c7f75 commit 192906e

4 files changed

Lines changed: 18 additions & 26 deletions

File tree

‎.openpublishing.redirection.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7320,6 +7320,11 @@
73207320
"redirect_url": "/cpp/windows/editing-accelerator-tables",
73217321
"redirect_document_id": false
73227322
},
7323+
{
7324+
"source_path": "docs/windows/associating-an-accelerator-key-with-a-menu-item.md",
7325+
"redirect_url": "/cpp/windows/predefined-accelerator-keys",
7326+
"redirect_document_id": false
7327+
},
73237328
{
73247329
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
73257330
"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
@@ -56,9 +56,8 @@
5656
#### [Previewing Resources](previewing-resources.md)
5757
#### [Accelerator Editor](accelerator-editor.md)
5858
##### [Setting Accelerator Properties](setting-accelerator-properties.md)
59-
##### [Associating an Accelerator Key with a Menu Item](associating-an-accelerator-key-with-a-menu-item.md)
6059
##### [Editing Accelerator Tables](editing-accelerator-tables.md)
61-
##### [Predefined Accelerator Keys](predefined-accelerator-keys.md)
60+
##### [Accelerator Keys](predefined-accelerator-keys.md)
6261
#### [Binary Editor](binary-editor.md)
6362
##### [Creating a New Custom or Data Resource](creating-a-new-custom-or-data-resource.md)
6463
##### [Opening a Resource for Binary Editing](opening-a-resource-for-binary-editing.md)

‎docs/windows/associating-an-accelerator-key-with-a-menu-item.md‎

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

‎docs/windows/predefined-accelerator-keys.md‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
---
2-
title: "Predefined Accelerator Keys (C++)"
2+
title: "Accelerator Keys (C++)"
33
ms.date: "11/04/2016"
44
f1_keywords: ["vc.editors.accelerator"]
5-
helpviewer_keywords: ["accelerator keys", "keyboard shortcuts", "keyboard shortcuts [C++], predefined"]
5+
helpviewer_keywords: ["accelerator keys", "keyboard shortcuts", "keyboard shortcuts [C++], predefined", "menus [C++], shortcut keys", "keyboard shortcuts [C++], menu association"]
66
ms.assetid: f234c5f2-4ec3-4c9e-834a-b5dd297625b9
77
---
8-
# Predefined Accelerator Keys (C++)
8+
# Accelerator Keys (C++)
9+
10+
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*.
11+
12+
## Predefined Accelerator Keys
913

1014
There are a number of predefined accelerator keys that may be part of a Windows application project. Some of these virtual keys are for the Windows environment. Other support browsers or Unicode applications. You can use any of these keys in any accelerator.
1115

@@ -52,7 +56,7 @@ There are a number of predefined accelerator keys that may be part of a Windows
5256
|VK_OEM_MINUS|Windows: For any country/region, the '-' key|
5357
|VK_OEM_PERIOD|Windows: For any country/region, the '.' key|
5458
|VK_OEM_PLUS|Windows: For any country/region, the '+' key|
55-
|VK_PACKET|Windows: Used to pass Unicode characters as if they were keystrokes.|
59+
|VK_PACKET|Windows: Used to pass Unicode characters as if they are keystrokes.|
5660
|VK_RCONTROL|Right CONTROL key|
5761
|VK_RMENU|Right MENU key|
5862
|VK_RSHIFT|Right SHIFT key|
@@ -63,7 +67,9 @@ There are a number of predefined accelerator keys that may be part of a Windows
6367
|VK_XBUTTON1|Windows: X1 mouse button|
6468
|VK_XBUTTON2|Windows: X2 mouse button|
6569

66-
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*.
70+
## Associating an Accelerator Key with a Menu Item
71+
72+
Many times, you want a menu item and a keyboard combination to issue the same program command. You do this by assigning the same resource identifier (ID) to the menu item and to an entry in your application's accelerator table. You then edit the menu item's caption to show the name of the accelerator. For more information on menu items and accelerator keys, see [Associating a Menu Item with an Accelerator Key](../windows/associating-a-menu-command-with-an-accelerator-key.md).
6773

6874
## Requirements
6975

@@ -72,4 +78,4 @@ Win32
7278
## See Also
7379

7480
[Accelerator Editor](../windows/accelerator-editor.md)<br/>
75-
[Resource Editors](../windows/resource-editors.md)
81+
[Resource Editors](../windows/resource-editors.md)

0 commit comments

Comments
 (0)