Share via


CAPEDIT Control (Compact 2013)

3/28/2014

This control simplifies the process of entering long strings of characters by capitalizing the first letter of the first word or the first letter of all words the user inputs into an edit control.

Syntax

#define WC_CAPEDIT L"CAPEDIT"

Remarks

CAPEDIT is most often used in edit controls for entries such as names and addresses.

To use the CAPEDIT control, initialize the control with the SHInitExtraControls function. Then, declare the control class as WC_CAPEDIT in the CreateWindow or CreateWindowEx function. Use the CEM_UPCASEALLWORDS or CEM_ENABLEUPCASE messages to determine the functionality of the control.

Requirements

Header

commctrl.h

Library

commctrl.lib

See Also

Reference

CapEdit Controls Reference
Edit Box Reference
SHInitExtraControls
CreateWindow
CreateWindowEx