|Top Previous Next|
The HTML MessageBox is an almost exact replacement for the standard Windows API MessageBox function, but with added functionality. The following are some of the features of the HTML MessageBox that it has in common with the Windows MessageBox:
The following are some of the improvements of the HTML MessageBox over the standard Windows MessageBox:
There is one significant difference of the HTML MessageBox in comparison to the Windows API MessageBox. In the Windows MessageBox, newline characters (ASCII 10) force a line break. In the HTML MessageBox, by default they do not (they are just treated as whitespace, as in HTML) and <BR> is used for line breaks. However, you can change this behaviour by calling the function HtmlMessageBoxSetNewlineIsBreak(1). After that has been called, newlines (or carriage returns followed by newlines) are again treated as line breaks. Calling this function allows you to use the HtmlMessageBox as an almost completely seamless replacement for all Windows MessageBox function calls in your application.
Some of the less important flags that can be passed to the Windows MessageBox function are not implemented by the HTML MessageBox at this time. Details are in the reference.
See Also: HTML Recognized by the MessageBox