When using DrawText, what does TextFormatFlags.Internal (a.k.a. DT_INTERNAL) do?

Posted by Daniel Stutzbach on Stack Overflow See other posts from Stack Overflow or by Daniel Stutzbach
Published on 2010-04-25T06:33:59Z Indexed on 2010/04/25 6:43 UTC
Read the original article Hit count: 244

Filed under:
|
|
|
|

When using TextRenderer.DrawText(), what does setting the TextFormatFlags.Internal flag actually do?

Equivalently, what does setting the DT_INTERNAL flag to Win32's DrawTextEx() function do?

More to the point, when should I set that flag and when should I not set it?

The documentation says: "Uses the system font to calculate text metrics", but I'm not entirely sure what that means. I've done some limited testing and setting the flag seems to change how the font is rendered when using a small font size, but doesn't seem to make a difference when using a large font size.

© Stack Overflow or respective owner

Related posts about win32

Related posts about winforms