Zitat:
DT_TABSTOP
Sets tab stops. Bits 8–15, which form the high-order byte of the low-order word, of the uFormat parameter specify the number of characters for each tab. The default number of characters per tab is eight. You cannot use the DT_CALCRECT, DT_EXTERNALLEADING, DT_INTERNAL, DT_NOCLIP, and DT_NOPREFIX values with the DT_TABSTOP value.
Delphi-Quellcode:
var
uFormat : DWORD;
Tabweite : integer;
begin
Tabweite := 3;
uFormat := DT_TABSTOP or DT_LEFT; // linksbündig mit Tabs
uFormat := uFormat or (Tabweite shl 8);
DrawText(..., uFormat);