afxMessageBox problem with hebrew in vista

Hi,

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.

Cyber-EEAsked:
Who is Participating?
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
If you want a safer solution, you can use a custom made MessageBox, like:
http://www.codeproject.com/KB/dialog/xmessagebox.aspx
http://www.codeproject.com/KB/dialog/MessageBoxDialog.aspx
http://www.codeproject.com/KB/dialog/CPPMessageBox.aspx

so you can change the font by your own.
0
 
lucky_jamesCommented:
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.

0
 
Cyber-EEAuthor Commented:
I did not change the font or size.
0
 
lucky_jamesCommented:
>>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.



regards,
James
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
All Courses

From novice to tech pro — start learning today.