Compartilhar via


TB_SETDRAWTEXTFLAGS

A version of this page is also available for

Windows Embedded CE 6.0 R3

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 dwDTFlags are 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 DrawText when the button text is drawn.

Return Value

Returns the previous text drawing flags.

Remarks

The dwMask parameter 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 dwMask and 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

Reference

Toolbar Controls Messages