Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 2.18 KB

File metadata and controls

61 lines (52 loc) · 2.18 KB
title Setting Accelerator Properties | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
accelerator properties
properties [C++], accelerator properties
Type property
Key property
Modifier property
ms.assetid 0fce9156-3025-4e18-b034-e219a4c65812
caps.latest.revision 9
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Setting Accelerator Properties

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.

Requirements

Win32

See Also

Predefined Accelerator Keys
Resource Editors
Accelerator Editor