Archive: Strange MessageBox formatting on Vista?


Strange MessageBox formatting on Vista?
I have the following (two paragraph) message box in my installer. Under XP the message box looks like I expect. Only my line breaks are in the message box, and the box is the width that I expected it to be.

Under Vista, however, NSIS seems to be inserting additional line breaks (one before 'Support@mycompan.com' and another before 'worry'.) This makes the message box really ugly under Vista (looks great under XP). We do not want to eliminate our line breaks, as that creates a message box under XP that is incredibly long and difficult to read.

Anyone know why this is happening? (Please, no comments on size of the box, contents or desired layout--it is what my customer wants--changing the layout would require a very convincing argument as to why it won't work the way he wants it.)

MessageBox MB_ICONEXCLAMATION|MB_OK "Important: If you have a firewall it may alert you that$\"MyApplication.exe$\"$\r$\n is attempting to access the Internet. Please allow access to ensure $\r$\nwe receive your e-mail subscription.$\r$\n$\r$\nAlso, please be sure to whitelist the e-mail address support@MyCompany.com$\r$\nin your e-mail program (if you don't know what this means, don't worry$\r$\nabout it)."


The result should be (and are on XP):


Important: If you have a firewall it may alert you that "MyApplication.exe"
is attempting to access the Internet. Please allow access to ensure
we receive your e-mail subscription.

Also, please be sure to whitelist the e-mail address support@MyCompany.com
in your e-mail program (if you don't know what this means, don't worry
about it).


In Vista we get:


Important: If you have a firewall it may alert you that "MyApplication.exe"
is attempting to access the Internet. Please allow access to ensure
we receive your e-mail subscription.

Also, please be sure to whitelist the e-mail address
support@MyCompany.com
in your e-mail program (if you don't know what this means, don't
worry
about it).

Imagine my surprise when I finally found out that *all* Vista message boxes now have a fixed size with 'automatic' text wrapping.

Leave it to MSFT to break all existing applications that had formatted message boxes!

We worked hard to get our message boxes with line breaks and formatting that looked good. One quick slash of the programmer's 'pen' at MSFT managed to make many of them look like crud. Did I mention I hate Vista?