@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The DrawTextEx API !!!!C# Signature: [DllImport("user32.dll")] static extern int DrawTextEx(IntPtr hdc, StringBuilder lpchText, int cchText, ref RECT lprc, uint dwDTFormat, ref DRAWTEXTPARAMS lpDTParams); !!!!User-Defined Types: [DRAWTEXTPARAMS] !!!!Notes: None. !!!!Tips & Tricks: private const int DT_TOP = 0x00000000; private const int DT_LEFT = 0x00000000; private const int DT_CENTER = 0x00000001; private const int DT_RIGHT = 0x00000002; private const int DT_VCENTER = 0x00000004; private const int DT_BOTTOM = 0x00000008; private const int DT_WORDBREAK = 0x00000010; private const int DT_SINGLELINE = 0x00000020; private const int DT_EXPANDTABS = 0x00000040; private const int DT_TABSTOP = 0x00000080; private const int DT_NOCLIP = 0x00000100; private const int DT_EXTERNALLEADING = 0x00000200; private const int DT_CALCRECT = 0x00000400; private const int DT_NOPREFIX = 0x00000800; private const int DT_INTERNAL = 0x00001000; private const int DT_EDITCONTROL = 0x00002000; private const int DT_PATH_ELLIPSIS = 0x00004000; private const int DT_END_ELLIPSIS = 0x00008000; private const int DT_MODIFYSTRING = 0x00010000; private const int DT_RTLREADING = 0x00020000; private const int DT_WORD_ELLIPSIS = 0x00040000; private const int DT_NOFULLWIDTHCHARBREAK = 0x00080000; private const int DT_HIDEPREFIX = 0x00100000; private const int DT_PREFIXONLY = 0x00200000; !!!!Sample Code: Please add some! !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: DrawTextEx@msdn on MSDN
Edit user32.DrawText
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.