CToolbar.SetDrawTextFlagsmethod
Sets the text drawing flags for the toolbar.
Syntax
FUNCTION SetDrawTextFlags (BYVAL hToolbar AS HWND, BYVAL dwMask AS DWORD, BYVAL dwDTFlags AS DWORD) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
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 function when the button text is drawn. |
Return value
Returns the previous text drawing flags.
Description
Sets the text drawing flags for the toolbar.
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 the DrawText function.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:1134
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class