Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure contains parameters that describe a control's keyboard mnemonics and keyboard behavior.

Syntax

typedef struct tagCONTROLINFO {
  ULONG 
cb;
  HACCEL 
hAccel;
  USHORT 
cAccel;
  DWORD 
dwFlags;
} CONTROLINFO;

Members

cb

Size of the CONTROLINFOstructure.

hAccel

Handle to an array of Windows ACCELstructures, each structure describing a keyboard mnemonic.

The array is allocated with the GlobalAllocfunction.

The control maintains the memory for this array; the caller of IOleControl::GetControlInfoshould not attempt to free the memory.

cAccel

Number of mnemonics described in the hAccelmember.

This value can be zero to indicate no mnemonics.

dwFlags

Specifies the keyboard behavior of the control. It is one of the following values.

Value Description

CTRLINFO_EATS_RETURN

When the control has the focus, it processes the ENTER key.

CTRLINFO_EATS_ESCAPE

When the control has the focus, it processes the ESCAPE key.

When the control has the focus, the dialog box containing the control cannot use the ENTER or ESCAPE keys as mnemonics for the default and cancel buttons.

Requirements

Header ocidl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Other Resources

ACCEL