TB_SETDRAWTEXTFLAGSTB_SETDRAWTEXTFLAGS*
*Contents  *Index  *Topic Contents
*Previous Topic: TB_SETDISABLEDIMAGELIST
*Next Topic: TB_SETEXTENDEDSTYLE

TB_SETDRAWTEXTFLAGS


TB_SETDRAWTEXTFLAGS
    wParam = (WPARAM)(DWORD) dwMask;
    lParam = (LPARAM)(DWORD) dwDTFlags;

Sets the text drawing flags for the toolbar.

dwMask
One or more of the DT_ flags, specified in DrawText, that indicate which bits in dwDTFlags will be used when drawing the text.
dwDTFlags
One or more of the DT_ flags, specified in DrawText, that indicate how the button text will be drawn. This value will be passed to the DrawText API when the button text is drawn.

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 don't 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 the DrawText API.

Version 4.71


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.