Export (0) Print
Expand All

Edit_LimitText macro

Limits the length of text that can be entered into an edit control. You can use this macro or send the EM_LIMITTEXT message explicitly.

Syntax


void Edit_LimitText(
  HWND hwndCtl,
  int cchMax
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

cchMax

Type: int

The maximum number of characters.

Return value

No return value.

Remarks

For more information, see EM_LIMITTEXT.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft