Share via


TB_SETDRAWTEXTFLAGS (Compact 2013)

3/28/2014

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

See Also

Reference

Toolbar Controls Messages