Edit_SetTabStops macro

Sets the tab stops in a multiline edit or rich edit control. When text is copied to the control, any tab character in the text causes space to be generated up to the next tab stop. You can use this macro or send the EM_SETTABSTOPS message explicitly.


void Edit_SetTabStops(
  HWND hwndCtl,
  int cTabs,
  int *lpTabs



Type: HWND

A handle to the control.


Type: int

The number of tab stops contained in the array. If this parameter is zero, the lpTabs parameter is ignored and default tab stops are set at every 32 dialog template units. If this parameter is 1, tab stops are set at every n dialog template units, where n is the distance pointed to by the lpTabs parameter. If this parameter is greater than 1, lpTabs is a pointer to an array of tab stops.


Type: int*

A pointer to an array of unsigned integers specifying the tab stops, in dialog template units. If cTabs is 1, this parameter is a pointer to an unsigned integer containing the distance between all tab stops, in dialog template units.

Return value

No return value.


For more information, see EM_SETTABSTOPS.


Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]





Community Additions

© 2014 Microsoft