NMCBEENDEDITA structure

Contains information about the conclusion of an edit operation within a ComboBoxEx control. This structure is used with the CBEN_ENDEDIT notification code.

Syntax

typedef struct {
  NMHDR hdr;
  BOOL  fChanged;
  int   iNewSelection;
  char  szText[CBEMAXSTRLEN];
  int   iWhy;
} NMCBEENDEDITA, *LPNMCBEENDEDITA, *PNMCBEENDEDITA;

Members

hdr

Type: NMHDR

An NMHDR structure that contains information about the notification code.

fChanged

Type: BOOL

A value indicating whether the contents of the control's edit box have changed. This value is nonzero if the contents have been modified, or zero otherwise.

iNewSelection

Type: int

The zero-based index of the item that will be selected after completing the edit operation. This value can be CB_ERR if no item will be selected.

szText

Type: TCHAR

A zero-terminated string that contains the text from within the control's edit box.

iWhy

Type: int

A value that specifies the action that generated the CBEN_ENDEDIT notification code. This value can be one of the following:

Value Meaning
CBENF_DROPDOWN
The user activated the drop-down list.
CBENF_ESCAPE
The user pressed ESC.
CBENF_KILLFOCUS
The edit box lost the keyboard focus.
CBENF_RETURN
The user completed the edit operation by pressing ENTER.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header commctrl.h