14#ifndef __SACCELERATOR__H__
15#define __SACCELERATOR__H__
17#include <interface/SAccelerator-i.h>
47 SAccelerator(WORD vKey = 0,
bool bCtrl =
false,
bool bAlt =
false,
bool bShift =
false);
62 STDMETHOD_(WORD,
GetModifier)(THIS) SCONST OVERRIDE;
70 STDMETHOD_(WORD,
GetKey)(THIS) SCONST OVERRIDE;
78 STDMETHOD_(DWORD,
GetAcc)(THIS) SCONST OVERRIDE;
WORD GetModifier() SCONST OVERRIDE
Gets the modifier keys.
static SStringT FormatAccelKey(DWORD dwAccel)
Formats an accelerator key as a string.
SAccelerator(DWORD dwAccel)
Constructor.
static DWORD TranslateAccelKey(LPCTSTR pszKeyName)
Translates a string to an accelerator key value.
DWORD GetAcc() SCONST OVERRIDE
Gets the accelerator key value.
static WORD VkFromString(LPCTSTR pszKey)
Converts a string to a virtual key code.
static SStringT GetKeyName(WORD vk)
Converts a virtual key code to its string representation.
SStringT FormatHotkey()
Formats the accelerator key as a string.
WORD GetKey() SCONST OVERRIDE
Gets the key value.
Interface for an accelerator key.