afxMessageBox problem with hebrew in vista


I have an application that uses in many places a AfxMessageBox to display messages to the user.
Until now i did not have any problems displaying the messages in english and hebrew. If i was in Hebrew mode then i changed the AfxMessage flags to Flags |= (MB_RIGHT|MB_RTLREADING) - i override the DoMessageBox method of CwinApp;
On vista i have a problem that messages in hebrew sometimes do not fit the window size and are cut in the middle.
This is very strange because on other OS i have no problem.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

seems like it is because of the font you are using.
have you changed the font you have been using in past or its size?

In Vista, we use a different font for it being cleartype compliant.

Jaime OlivaresSoftware ArchitectCommented:
If you want a safer solution, you can use a custom made MessageBox, like:

so you can change the font by your own.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cyber-EEAuthor Commented:
I did not change the font or size.
>>This is very strange because on other OS i have no problem.
then seems like a bug in vista.
You can go for a custom control then.

please have a look into links provided by jaime_olivares.

Forced accept.

EE Admin
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.