Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Edit_GetText macro (windowsx.h)

Gets the text of an edit control.

Syntax

int Edit_GetText(
  HWND   hwndCtl,
  LPTSTR lpch,
  int    cchMax
);

Parameters

hwndCtl

Type: HWND

A handle to the edit control.

lpch

Type: LPTSTR

A pointer to the buffer that will receive the text.

cchMax

Type: int

The maximum number of characters to copy to the buffer, including the NULL terminator.

Return value

Type: int

The length, in characters, of the copied string, not including the terminating NULL character.

Remarks

The macro expands to a call to GetWindowText.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h

Feedback

Was this page helpful?

Additional resources