Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message sets the text drawing flags for the toolbar.

Syntax

TB_SETDRAWTEXTFLAGS 
wParam = (WPARAM)(DWORD) 
dwMask;

lParam = (LPARAM)(DWORD) 
dwDTFlags;

Parameters

dwMask

A combination of one or more of the DT_* flags, specified in DrawText, that specifies which bits in dwDTFlagsare used when drawing the text.

dwDTFlags

A combination of one or more of the DT_* flags, specified in DrawText, that specify how the button text will be drawn. This value is passed to DrawTextwhen the button text is drawn.

Return Value

Returns the previous text drawing flags.

Remarks

The dwMaskparameter allows you to specify which flags will be used when drawing the text, even if these flags are turned off. For example, if you do not want the DT_CENTER flag used when drawing text, you would add the DT_CENTER flag to dwMaskand not specify the DT_CENTER flag in dwDTFlags. This prevents the control from passing the DT_CENTER flag to DrawText.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also