|Top Previous Next|
HtmlMessageBoxSetNewlineIsBreak is used to change the behaviour of the MessageBox's interpretation of HTML, by determining whether newline characters (ASCII 10), or carriage returns followed by newlines (ASCII 13 then 10) are treated as link breaks, like the HTML "<BR>". It persists as long as the DLL is loaded, or until another call to the same function is made.
Standard Windows API Calling:
void HtmlMessageBoxSetNewlineIsBreak(int newlineIsBreak);
COM Object Calling:
.NET Object Calling (C# / VB.NET):
newlineIsBreak: If non-0, newlines (or carriage returns followed by newlines) are treated as line breaks. If 0, newlines (or carriage returns followed by newlines) are treated as whitespace (i.e. one space).
When this has been called with a non-0 value, either a newline (ASCII 10) or a carriage return followed by a newline (ASCII 13, then 10) are converted to "<BR>", and thus interpreted as a line break.
For standard Windows API calling: