HOWTO: Use the DrawText API Call from Visual BasicLast reviewed: September 30, 1997Article ID: Q154517 |
The information in this article applies to:
SUMMARYThe DrawText API gives users the ability to write text to a Device context giving various alignment and word-wrapping features. This article provides a code sample showing how to achieve these effects under the 32-bit Edition of Visual Basic 4.0.
MORE INFORMATION
Global Const DT_TOP = &H00000000 Global Const DT_LEFT = &H00000000 Global Const DT_CENTER = &H00000001 Global Const DT_RIGHT = &H00000002 Global Const DT_VCENTER = &H00000004 Global Const DT_BOTTOM = &H00000008 Global Const DT_WORDBREAK = &H00000010 Global Const DT_SINGLELINE = &H00000020 Global Const DT_EXPANDTABS = &H00000040 Global Const DT_TABSTOP = &H00000080 Global Const DT_NOCLIP = &H00000100 Global Const DT_EXTERNALLEADING = &H00000200 Global Const DT_CALCRECT = &H00000400 Global Const DT_NOPREFIX = &H00000800 Global Const DT_INTERNAL = &H00001000 Global Const DT_EDITCONTROL = &H00002000 Global Const DT_PATH_ELLIPSIS = &H00004000 Global Const DT_END_ELLIPSIS = &H00008000 Global Const DT_MODIFYSTRING = &H00010000 Global Const DT_RTLREADING = &H00020000 Global Const DT_WORD_ELLIPSIS = &H00040000 REFERENCESThe Win32 SDK has a comprehensive summary of Drawtext and other Drawing and Text functions. Keywords : vb432 VB4WIN vbwin GnrlVb kbprg Technology : kbvba Version : WINDOWS:4.0 Platform : NT WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |