| title | Setting Accelerator Properties | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | 0fce9156-3025-4e18-b034-e219a4c65812 | |||||||||||||
| caps.latest.revision | 9 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
In Visual C++ .NET, you can set accelerator properties in the Properties window at any time. You can also use the Accelerator editor to modify the accelerator properties in the accelerator table. Changes made using the Properties window or the Accelerator editor have the same result: edits are immediately reflected in the accelerator table.
There are three properties for each accelerator ID:
-
The Modifier property sets control key combinations for the accelerator.
[!NOTE] In the Properties window, this property appears as three separate Boolean properties, all of which can be controlled independently: Alt, Ctrl, and Shift.
-
The Key property sets the actual key to use as the accelerator.
-
The Type property determines whether the key is interpreted as virtual (VIRTKEY) or ASCII/ANSI.
Win32
Predefined Accelerator Keys
Resource Editors
Accelerator Editor